Java server for instant messaging

0 James Murphy · April 5, 2015
This is a bit of a beginner question, but is there a way to run the instant messaging program on seprare computers using some sort of free server, and if so, how do I set that up/get access to the server? Thanks

Post a Reply


Oldest  Newest  Rating
0 thomas kensah · April 7, 2015
I believe you need to implement a server program which listens for incoming
client requests using the ServerSocket and Socket classes. you have to pass the
IP and Port  number of the localhost(your computer in this case) as arguments to the ServerSocket()
constructor. If you are connected to the internet as in having a server, you can access your
java server program by passing the hostname of the server and the port the
ServerSocket is listening on - as arguments to the Socket() constructor.
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator