Is there any built in procedure for getting the remote computer’s name?

Yes and not. As you know you can get the remote IP address and having that IP, you can do a ReverseLookup to find out the hostname, if any, corresponding to that IP.
A hostname (IP networking) is NOT a computer name (Windows networking).
A computer behind a NAT router or a proxy server do not expose his own IP address to the outside world.

if not, I will get the computer name from the client site and send it to the
server as command when the connection is made.

That is probably a better idea.
Not the nothing prevent two persons to name their compter using the same computername ! Your software has probably to take care about that special case.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to