Get IP address programatically ?
-
How can I get IP address of any computers that connect to my computer through a CSocket variable ? Ex: My computer run a program as a server, using a CSocket variable, listen to connection. Client run a program connect to server at port 0 by a CSocket variable. I want to get IP address of the client ! How to ? Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
-
How can I get IP address of any computers that connect to my computer through a CSocket variable ? Ex: My computer run a program as a server, using a CSocket variable, listen to connection. Client run a program connect to server at port 0 by a CSocket variable. I want to get IP address of the client ! How to ? Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
Use
[getpeername](http://msdn.microsoft.com/library/en-us/winsock/wsapiref_8woi.asp)
. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo