Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Get UDP Clients IP Address?

Using VB.NET is there a way to determine the IP address of a UDPClient that is sending data to another UDPClient? For example: If I have a client/server program and the clients send information to the server, is there a way for the server's listening UDPClient to get the IP information of the client that sent the data? I guess I could include IP information in the data that the clients send to differentiate them but I thought there was a way to do it using the UDPClient itself (RemoteIPEndpoint or something?). Any ideas?
[531 byte] By [howiegoo] at [2007-11-11 7:06:33]
# 1 Re: Get UDP Clients IP Address?
Nevermind. I figured it out about 2 minutes after I posted. I just used RemoteIpEndPoint.Address to get it.
howiegoo at 2007-11-11 21:49:32 >