sashwat kumar padhy wrote:
I have developed a java program which has a server and a client program. The client program is needed to be run by my friend who is is a different city where as i would run the server program. This program works as long as i put the ip information as the internal ip address,in the client program.(inside the home network only) What i want is to have a single IP which can be used by the client program,anywhere over internet to run the client program.Without using servers isn't it possible? If no,then does free server providers like www.serversfree.com allow these facilities?
First of all, what is the IP address of your machine??? Does start with 192.168.*.* ?? Does it start with 10.*.*.* ?? If you are, then your machine is not directly on the internet. It is on a private network (an intranet) and it uses a default gateway, which may also use a default gateway, until it gets to the machine or router that is on the internet.
In other words, when you go to one of those "what is my IP" sites, it is reporting the IP address of the machine on the internet -- which if you are on a private network, isn't the same as your machine.
Hosting services places their machines on the internet. Or forward the ports to the machines in the intranet.... if you are in a private network, and you want it accessible from the internet, then you too, will need to forward the port from the router to your machine.
Henry