Writing a chat program (as so many do) and i have found that i would like to be able to get the clients to connect to the server automatically.

However, the IP address of the server would not be permanent, so i cannot just hard-core it into the program

In TCP, I'm looking for some sort of broadcast feature, that allows the client to know where the server is

Any ideas?

EDIT: should have said, this will be a LAN program only - no outside connections