I'm trying to learn how to use sockets in java. I found a great tutorial at: http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.ht ml
I was able to get the KnockKnockServe r and Client classes they provide there to work between two processes on one machine. However, I am unable to get it to function between different machines over the internet. I have tried using the various different constructors of both the ServerSocket and the Socket classes to get it to work but it still only works when they're running on the same machine. I have tried using the javax.net.Serve rSocketFactory and the javax.net.Socke tFactory as well to no avail. I think the problem might be solved if I was able to use an instance of the socket class other than the default PlainSocketImpl but I'm not sure how to do that. thanks for any help.
I was able to get the KnockKnockServe r and Client classes they provide there to work between two processes on one machine. However, I am unable to get it to function between different machines over the internet. I have tried using the various different constructors of both the ServerSocket and the Socket classes to get it to work but it still only works when they're running on the same machine. I have tried using the javax.net.Serve rSocketFactory and the javax.net.Socke tFactory as well to no avail. I think the problem might be solved if I was able to use an instance of the socket class other than the default PlainSocketImpl but I'm not sure how to do that. thanks for any help.
Comment