hello all, i'm a beginner of c#. i need to develop a client server application. how am i suppose to code so that the server can get the ip address of one or more than one clients?
Thanks.
hello all, i'm a beginner of c#. i need to develop a client server application. how am i suppose to code so that the server can get the ip address of one or more than one clients?
Thanks.
If you are going to use Sockets, it has a property called Endpoint, which is most likely and IPEndPoint. IPEndPoint has a property Address which is the IP address of the client.
If you are going to use Sockets, it has a property called Endpoint, which is most likely and IPEndPoint. IPEndPoint has a property Address which is the IP address of the client.
yes, going to use socket. i search online and found out something related to Dns.gethostbyname, this also need to be applied to get clients' ip addresses?
by the way, thanks for replied.
Generally clients connect to the server, so they would use GetHostByName. The server receives the connection.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.