Apache within lan, not out

Posted on 2006-05-23
Last Modified: 2012-05-05
I have installed Apache/1.3.35 and PHP/4.4.2 on windows XP.  My computer is in DMZ and ports 80 and 1234 are forwarded to my computer.  I am connected to the internet.  My server runs and works perfect and fine within my lan.  However, no one outside of my lan can connect access my pages, they all time out after about 300 seconds (which is a parameter of httpd.conf).  AFter some research I found that my ISP, which is Optimum Online, blocks port 80.  So I changed the "Port" parameter to 1234 and tried this.  Tried to access with  Again, worked inside lan, not outside.  However, here is my dilemma.  I've read that browsing to http://localhost/ should yeild me my pages, within my lan, if I am using port 80 and if I'm using any other port, I should browse to it via http://localhost:xxxx/ where xxxx is the port number specified in httd.conf.  Recall that I have set the port to 1234, yet, when I browse to http://localhost/, it still works!  This leads me to beleive that my server is still listening on port 80 and not 1234, which means that it is still being blocking by my ISP outside of my lan.  Is there anything more that I must do to have apache listen on port 1234.  If not, why does http://localhost/ work when "Port" is set to 1234?  Thanks.
Question by:yattias
    LVL 10

    Accepted Solution

    Could the page at http://localhost/ be served from browser cache?

    In any case, a good (and free) utility to see what ports each process is using.  TcpView may help you investigate:

    Also, Port directive is deprecated.  Though it still exists in Apache 1.3.x, it may be more straightforward to use Listen.
    LVL 6

    Assisted Solution


    IF your problem is the accessibility from outside, please check the default gateway settings of the webserver and make sure that it can access outside world. (Just a guess). The webserver should listen on its LAN ip address (not localhost). This would be another requirement for portworwarding. Try to tellnet to your public IPaddress port after the configuration to verify that its working..

    Bimal Mankara


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now