Re: [twsocket] SslWSocketServer GET REMOTE COMPUTER NAME

2011-01-20 Thread Francois PIETTE

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

Re: [twsocket] SslWSocketServer GET REMOTE COMPUTER NAME

2011-01-20 Thread daniel cc

Thanks Francois,
Your answer makes the ComputerName issue easier for me.

The network will be controlled. Users won't be able to use duplicated names 
on their computers.


I have asked because  I have found -- GetPeerName in the component and 
wondering if possible.


--
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


Re: [twsocket] SslWSocketServer GET REMOTE COMPUTER NAME

2011-01-20 Thread Francois PIETTE
I have asked because  I have found -- GetPeerName in the component and 
wondering if possible.


In socket terminologye (in general, not specific to ICS), peer name is the 
IP, port and protocol used by the remote.


--
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


[twsocket] SslWSocketServer GET REMOTE COMPUTER NAME

2011-01-19 Thread daniel cc
Hi guys,
Is there any built in procedure for getting the remote computer’s name?
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.

thanks.
--
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