Asking a webpage from a homenetwork.

  • Thread starter Thread starter Steven Somers
  • Start date Start date
S

Steven Somers

Hello everybody,

I am just a junior programmer and I hope I am asking my question on the
right newsgroup...
At home I have two computers which are connected to the WAN by a router. The
router (which is the DHCP server) gives this two computers always the same
IP. So these IP's the router is giving, are not unique in the world, they
are just unique in my home network. The only unique IP is the IP from the
router which is connected to the WAN.
I made from one of my two computers a server and it is no problem for me to
ask a certain webpage on the computer with the server with my other computer
(which lays in the same home network). Indeed in my home network the two
computers have a unique IP, so I can just ask a certain webpage by the
following: "http://IPotherPCofHomeNetwork/directoryServer/certainWebpage".
Now, my question is: How can I ask the same wesbpage on my homecomputer if
I ask this webpage from another computer outside my homenetwork ??? Is this
something like the following: "http://IProuterConnectedWithWAN/...


Please, can anybody help me??? I am getting crazy of it ??
Many Thanks,
Steven.
 
1. Change webserver to serve on port 81.
2. Give your web server a static IP address, i.e., if the router's DHCP
server assigns addresses from 192.168.1.33 to 192.168.1.64 then give the web
server a static IP address outside this range, e.g., 192.168.1.65.
3. Go to router configuration and forward port 81 to the web server address,
e.g., 192.168.1.65.
4. If the IP address given to the router by your ISP is dynamic you may want
to try http://www.no-ip.com/.

Remember to specify port 81 when accessing web pages.

http://IPotherPCofHomeNetwork/directoryServer/certainWebpage:81/
http://IProuterConnectedWithWAN:81/
 
Back
Top