accesing a server which is inside a LAN
Posted on 2003-02-26
Hi. I am trying to make a program like PC anywhere (just to learn), so I should create a server and a client program. The problem comes because my client computer is inside a LAN. By an example it will be easier to explain the problem:
My client computer's IP is 10.4.1.5.
My ISP's IP is 126.96.36.199.
So, my client will be running but if I am outside the LAN, how can I reach it?
How do I have to program it to tell it that the client has to connect to 10.4.1.5 through 188.8.131.52??
And to make things more difficult, is there a way to do it if the LAN's IP is not static (ie, using DHCP)?
Just any comments, ideas or links will be appreciated.