Sockets for computers in wireless network
Hi, I'm new to Java network programming and was going through Sun's Knock-Knock tutorial for setting up a client-server connection (http colon//java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html).
Through that, I was able to run the server/client on two computers and get the connection working. However, at this stage, both computers were on the same wireless network, and to create the socket at the client I was using the private IP (192.168.xxx) of the server.
Is it possible to have this sample program work on two arbitrary computers, for example, both computers having private IPs on two separate wireless networks (sorry my terminology may be wrong here)? I feel that it must be possible since all these P2P applications exist, but the only thing online I've found regarding this is JXTA, which I'm hoping is not the simplest solution to this problem.
Any help is appreciated.