I have some experience using the Socket class and ServerSocket class in the java.net package.

However, I want to be able to connect to my Server using a domain name instead of having to know the IP of the server.
Right now of course I just tell my client to connect to 127.0.0.1 but I'd like to be able to have clients connect to the server without having to know my exact IP. Using a domain name or my computer name?

Anyone have ideas?
Also, when creating a chat program using the aforementioned classes, if your server recieves multiple requests from various clients would you create a separate socket for each client to talk to the server or could you use threads to let multiple clients use one socket, one port?

The help is very much appreciated.