Jump to content

Archived

This topic is now archived and is closed to further replies.

Random

How do I keep a server behind a router?

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

×

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.