Jump to content

How do I keep a server behind a router?


Random

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

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

Archived

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

×
×
  • 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.