Java socket program

How to display the server’s name to the client when the server inputs its name using java… please help