Java server for instant messaging

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

Replies

I believe you need to implement a server program which listens for incomingclient requests using the ServerSocket and Socket classes. you have to pass theIP 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 yourjava server program by passing the hostname of the server and the port theServerSocket is listening on - as arguments to the Socket() constructor.

1

Java / Android Development

107,234 followers

About

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