It is possible to obtain the actual Computer Name of a remote computer once a TCP connection is established with a remote machine.

I need to write a TCP connection router style of programme, but the IP addresses of the machines that will connect to this programme are not static. What I am looking for is a method to identify which remote computer I am connected to. The Computer Name was one thought as this is not usually varied, but I'm open to suggestions.

Appreciate any assistance.

Thanks
Adrian