Ubuntu Server Port 80 not reachable/closed












0














I am running Ubuntu server 12.04 with Apache2.



My port 80 is not reachable and closed. Any idea how can I open it so I can access to my web admin?



I noticed that port 80 is reachable under LAN, but its not able to reach outside of LAN even I had done port forwarding.



What should I do?



Thanks.










share|improve this question
























  • How do you know your port is closed? Any result? Please include output of sudo iptables -L
    – Achu
    Feb 21 '14 at 5:19












  • I downloaded a software from portforward.com to check is my port is reachable or not. Then I got the result its close. Below is my result of iptables -L root@server:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
    – user1343112
    Feb 21 '14 at 5:23








  • 1




    What about sudo ufw allow 80?
    – UniversallyUniqueID
    Apr 17 '16 at 9:39










  • @BharadwajRaju UFW generates IPtables rules, which would have shown up in user1343112's answer if it was enabled. Also, port 80 being reachable on the LAN is a very good sign that UFW is not blocking this.
    – Azendale
    Sep 4 '17 at 3:07
















0














I am running Ubuntu server 12.04 with Apache2.



My port 80 is not reachable and closed. Any idea how can I open it so I can access to my web admin?



I noticed that port 80 is reachable under LAN, but its not able to reach outside of LAN even I had done port forwarding.



What should I do?



Thanks.










share|improve this question
























  • How do you know your port is closed? Any result? Please include output of sudo iptables -L
    – Achu
    Feb 21 '14 at 5:19












  • I downloaded a software from portforward.com to check is my port is reachable or not. Then I got the result its close. Below is my result of iptables -L root@server:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
    – user1343112
    Feb 21 '14 at 5:23








  • 1




    What about sudo ufw allow 80?
    – UniversallyUniqueID
    Apr 17 '16 at 9:39










  • @BharadwajRaju UFW generates IPtables rules, which would have shown up in user1343112's answer if it was enabled. Also, port 80 being reachable on the LAN is a very good sign that UFW is not blocking this.
    – Azendale
    Sep 4 '17 at 3:07














0












0








0







I am running Ubuntu server 12.04 with Apache2.



My port 80 is not reachable and closed. Any idea how can I open it so I can access to my web admin?



I noticed that port 80 is reachable under LAN, but its not able to reach outside of LAN even I had done port forwarding.



What should I do?



Thanks.










share|improve this question















I am running Ubuntu server 12.04 with Apache2.



My port 80 is not reachable and closed. Any idea how can I open it so I can access to my web admin?



I noticed that port 80 is reachable under LAN, but its not able to reach outside of LAN even I had done port forwarding.



What should I do?



Thanks.







port-forwarding






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 21 '14 at 6:58

























asked Feb 21 '14 at 5:08









user1343112

781313




781313












  • How do you know your port is closed? Any result? Please include output of sudo iptables -L
    – Achu
    Feb 21 '14 at 5:19












  • I downloaded a software from portforward.com to check is my port is reachable or not. Then I got the result its close. Below is my result of iptables -L root@server:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
    – user1343112
    Feb 21 '14 at 5:23








  • 1




    What about sudo ufw allow 80?
    – UniversallyUniqueID
    Apr 17 '16 at 9:39










  • @BharadwajRaju UFW generates IPtables rules, which would have shown up in user1343112's answer if it was enabled. Also, port 80 being reachable on the LAN is a very good sign that UFW is not blocking this.
    – Azendale
    Sep 4 '17 at 3:07


















  • How do you know your port is closed? Any result? Please include output of sudo iptables -L
    – Achu
    Feb 21 '14 at 5:19












  • I downloaded a software from portforward.com to check is my port is reachable or not. Then I got the result its close. Below is my result of iptables -L root@server:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
    – user1343112
    Feb 21 '14 at 5:23








  • 1




    What about sudo ufw allow 80?
    – UniversallyUniqueID
    Apr 17 '16 at 9:39










  • @BharadwajRaju UFW generates IPtables rules, which would have shown up in user1343112's answer if it was enabled. Also, port 80 being reachable on the LAN is a very good sign that UFW is not blocking this.
    – Azendale
    Sep 4 '17 at 3:07
















How do you know your port is closed? Any result? Please include output of sudo iptables -L
– Achu
Feb 21 '14 at 5:19






How do you know your port is closed? Any result? Please include output of sudo iptables -L
– Achu
Feb 21 '14 at 5:19














I downloaded a software from portforward.com to check is my port is reachable or not. Then I got the result its close. Below is my result of iptables -L root@server:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
– user1343112
Feb 21 '14 at 5:23






I downloaded a software from portforward.com to check is my port is reachable or not. Then I got the result its close. Below is my result of iptables -L root@server:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
– user1343112
Feb 21 '14 at 5:23






1




1




What about sudo ufw allow 80?
– UniversallyUniqueID
Apr 17 '16 at 9:39




What about sudo ufw allow 80?
– UniversallyUniqueID
Apr 17 '16 at 9:39












@BharadwajRaju UFW generates IPtables rules, which would have shown up in user1343112's answer if it was enabled. Also, port 80 being reachable on the LAN is a very good sign that UFW is not blocking this.
– Azendale
Sep 4 '17 at 3:07




@BharadwajRaju UFW generates IPtables rules, which would have shown up in user1343112's answer if it was enabled. Also, port 80 being reachable on the LAN is a very good sign that UFW is not blocking this.
– Azendale
Sep 4 '17 at 3:07










2 Answers
2






active

oldest

votes


















0














To access webmin you have to use the port 10000 with https like this: https://localhost:10000/



Moreover if you want to change Apache port



Open /etc/apache2/ports.conf file, enter:



$ gksu gedit /etc/apache2/ports.conf


To make the server accept connections on both port 8010, enter:



Listen 8010


To make the server accept connections on both port 80 and port 8010, use:



Listen 80
Listen 8010


Now restart apache



sudo service apache2 restart


and try.









share|improve this answer





















  • I had done this process. But still fail.
    – user1343112
    Feb 21 '14 at 5:26










  • localhost:10000 have you try this
    – Maythux
    Feb 21 '14 at 5:26












  • u mean add localhost:10000 into my /etc/apache2/ports.conf?
    – user1343112
    Feb 21 '14 at 5:28










  • no run in browser
    – Maythux
    Feb 21 '14 at 5:28










  • be sure to run https not http
    – Maythux
    Feb 21 '14 at 5:29





















0














As mentioned Port 80 is reachable from LAN but from not WAN with configuration of port forwarding.



When you configure Port forwarding, you must to check that gateway routes are configured properly in server. While port forwarding you need to take care of this point, otherwise you will not able to access application, even you have configured port forwarding properly.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f424013%2fubuntu-server-port-80-not-reachable-closed%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    To access webmin you have to use the port 10000 with https like this: https://localhost:10000/



    Moreover if you want to change Apache port



    Open /etc/apache2/ports.conf file, enter:



    $ gksu gedit /etc/apache2/ports.conf


    To make the server accept connections on both port 8010, enter:



    Listen 8010


    To make the server accept connections on both port 80 and port 8010, use:



    Listen 80
    Listen 8010


    Now restart apache



    sudo service apache2 restart


    and try.









    share|improve this answer





















    • I had done this process. But still fail.
      – user1343112
      Feb 21 '14 at 5:26










    • localhost:10000 have you try this
      – Maythux
      Feb 21 '14 at 5:26












    • u mean add localhost:10000 into my /etc/apache2/ports.conf?
      – user1343112
      Feb 21 '14 at 5:28










    • no run in browser
      – Maythux
      Feb 21 '14 at 5:28










    • be sure to run https not http
      – Maythux
      Feb 21 '14 at 5:29


















    0














    To access webmin you have to use the port 10000 with https like this: https://localhost:10000/



    Moreover if you want to change Apache port



    Open /etc/apache2/ports.conf file, enter:



    $ gksu gedit /etc/apache2/ports.conf


    To make the server accept connections on both port 8010, enter:



    Listen 8010


    To make the server accept connections on both port 80 and port 8010, use:



    Listen 80
    Listen 8010


    Now restart apache



    sudo service apache2 restart


    and try.









    share|improve this answer





















    • I had done this process. But still fail.
      – user1343112
      Feb 21 '14 at 5:26










    • localhost:10000 have you try this
      – Maythux
      Feb 21 '14 at 5:26












    • u mean add localhost:10000 into my /etc/apache2/ports.conf?
      – user1343112
      Feb 21 '14 at 5:28










    • no run in browser
      – Maythux
      Feb 21 '14 at 5:28










    • be sure to run https not http
      – Maythux
      Feb 21 '14 at 5:29
















    0












    0








    0






    To access webmin you have to use the port 10000 with https like this: https://localhost:10000/



    Moreover if you want to change Apache port



    Open /etc/apache2/ports.conf file, enter:



    $ gksu gedit /etc/apache2/ports.conf


    To make the server accept connections on both port 8010, enter:



    Listen 8010


    To make the server accept connections on both port 80 and port 8010, use:



    Listen 80
    Listen 8010


    Now restart apache



    sudo service apache2 restart


    and try.









    share|improve this answer












    To access webmin you have to use the port 10000 with https like this: https://localhost:10000/



    Moreover if you want to change Apache port



    Open /etc/apache2/ports.conf file, enter:



    $ gksu gedit /etc/apache2/ports.conf


    To make the server accept connections on both port 8010, enter:



    Listen 8010


    To make the server accept connections on both port 80 and port 8010, use:



    Listen 80
    Listen 8010


    Now restart apache



    sudo service apache2 restart


    and try.










    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 21 '14 at 5:21









    Maythux

    50.3k32167215




    50.3k32167215












    • I had done this process. But still fail.
      – user1343112
      Feb 21 '14 at 5:26










    • localhost:10000 have you try this
      – Maythux
      Feb 21 '14 at 5:26












    • u mean add localhost:10000 into my /etc/apache2/ports.conf?
      – user1343112
      Feb 21 '14 at 5:28










    • no run in browser
      – Maythux
      Feb 21 '14 at 5:28










    • be sure to run https not http
      – Maythux
      Feb 21 '14 at 5:29




















    • I had done this process. But still fail.
      – user1343112
      Feb 21 '14 at 5:26










    • localhost:10000 have you try this
      – Maythux
      Feb 21 '14 at 5:26












    • u mean add localhost:10000 into my /etc/apache2/ports.conf?
      – user1343112
      Feb 21 '14 at 5:28










    • no run in browser
      – Maythux
      Feb 21 '14 at 5:28










    • be sure to run https not http
      – Maythux
      Feb 21 '14 at 5:29


















    I had done this process. But still fail.
    – user1343112
    Feb 21 '14 at 5:26




    I had done this process. But still fail.
    – user1343112
    Feb 21 '14 at 5:26












    localhost:10000 have you try this
    – Maythux
    Feb 21 '14 at 5:26






    localhost:10000 have you try this
    – Maythux
    Feb 21 '14 at 5:26














    u mean add localhost:10000 into my /etc/apache2/ports.conf?
    – user1343112
    Feb 21 '14 at 5:28




    u mean add localhost:10000 into my /etc/apache2/ports.conf?
    – user1343112
    Feb 21 '14 at 5:28












    no run in browser
    – Maythux
    Feb 21 '14 at 5:28




    no run in browser
    – Maythux
    Feb 21 '14 at 5:28












    be sure to run https not http
    – Maythux
    Feb 21 '14 at 5:29






    be sure to run https not http
    – Maythux
    Feb 21 '14 at 5:29















    0














    As mentioned Port 80 is reachable from LAN but from not WAN with configuration of port forwarding.



    When you configure Port forwarding, you must to check that gateway routes are configured properly in server. While port forwarding you need to take care of this point, otherwise you will not able to access application, even you have configured port forwarding properly.






    share|improve this answer


























      0














      As mentioned Port 80 is reachable from LAN but from not WAN with configuration of port forwarding.



      When you configure Port forwarding, you must to check that gateway routes are configured properly in server. While port forwarding you need to take care of this point, otherwise you will not able to access application, even you have configured port forwarding properly.






      share|improve this answer
























        0












        0








        0






        As mentioned Port 80 is reachable from LAN but from not WAN with configuration of port forwarding.



        When you configure Port forwarding, you must to check that gateway routes are configured properly in server. While port forwarding you need to take care of this point, otherwise you will not able to access application, even you have configured port forwarding properly.






        share|improve this answer












        As mentioned Port 80 is reachable from LAN but from not WAN with configuration of port forwarding.



        When you configure Port forwarding, you must to check that gateway routes are configured properly in server. While port forwarding you need to take care of this point, otherwise you will not able to access application, even you have configured port forwarding properly.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 17 '18 at 15:14









        Ketan Patel

        10.3k94365




        10.3k94365






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f424013%2fubuntu-server-port-80-not-reachable-closed%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅