Jump to content

Recommended Posts

Hi. My dad and I have a router, I unplugged it to see if Apache would run on it when I had entered my IP...and it did, after I plugged the router back in, my server didnt work. How do I make it work?

 

IP: 12.218.218.190

Router IP: 192.168.0.100

 

Thanks for the help.

Link to comment
https://forums.phpfreaks.com/topic/264-how-do-i-keep-a-server-behind-a-router/
Share on other sites

ok update. This is what it says now when I try to start apache:

 

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80. Unable to open log

  • 2 weeks later...

Random: If you\'re running a *nix machine then as long as the server is started then you should be able to access the webserver from inside your lan by typing in http://whatevertheservername or http://whatevertheipoftheserveris

 

To be able to access it from outside your lan then you need to go in and map the port on the router to whatever the ip address is of the webserver.. for example you could do something like this.. I have a netgear router..

 

Port 80 to 10.20.30.5

 

it depends on what type of router you have as to how to map the ports.. but it\'s not that hard :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.