Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    London, UK
    Posts
    234
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Running a web server on a LAN

    I have a LAN in my home, and I would like to run a website off it. I have got Apache/MySQL running.

    I have tried to find some simple documentation, but whenever I put in my IP address into a web-adress bar, it directs the browser to my router's control panel login page.

    How can I view my website using this setup and if not, how would I go about it? I was foolish enough to assume I could simply stick my IP address in there

    Thanks
    Dave

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    Kansas, USA
    Posts
    487
    Thanks
    0
    Thanked 54 Times in 53 Posts
    If you only want to access the site on your LAN, use the IP of the computer where the Apache server is running, not your outside IP. Make sure Apache is running and listening. If you are using a port other than 80, you'll need to form the URL like this: http://192.168.1.105:81/ (assuming the server is running on local IP 192.168.1.105 and listening to port 81).

    If you want to expose the site to the outside world, you'll need to set up your router for IP forwarding (check router documentation for specific instructions on how to do this) and you'll definitely want a good firewall software running on the server. If you set up like this, you would use your outside IP address to access the server, or get an IP redirect from a service like www.dyndns.org.

  • #3
    Regular Coder
    Join Date
    Jan 2004
    Location
    London, UK
    Posts
    234
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok - will read into it, thanks alot, anyone else with good links or suggestions?

    btw - sorry if this is in the wrong forum
    Dave

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Kansas, USA
    Posts
    487
    Thanks
    0
    Thanked 54 Times in 53 Posts
    Also, if you already are running a good firewall software on the computer with Apache, you may also need to set that firewall up to allow outside access through whatever port Apache is using (default port 80).

  • #5
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Are you only trying to access it from your own computer which is hosting it, I often find it doesn't work from there, but it does work from other peoples computers.

  • #6
    Regular Coder
    Join Date
    Jan 2004
    Location
    London, UK
    Posts
    234
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can access it from my own computer by going to my computer's IP variant from of the router (192.168.1.3). However, when I stick the IP i am assigned into the address bar, it directs it straight to my router's login
    Dave

  • #7
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Set a Firewall path, Port 80 > 192.168.1.3
    Last edited by gsnedders; 09-15-2004 at 05:18 PM. Reason: Learn to spell, BOY!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •