web dev

web dev

  • NA
  • 2
  • 647

How to get client's IP address and port in UDP Echo server

Feb 24 2021 11:21 AM
Hello, Everyone.
 
I have some problems in customizing the UDP Echo server.
 
I'm following this guide now.
 
https://chronoxor.github.io/CSharpServer/
 
I want to get the client's IP address and port in the OnReceived function of the UDP Echo Server.
This function has UDPEndpoint param named 'endpoint'.
I think I can get the client's info with this param but I can't know the correct way to do so.
 
So I hope you help me asap.
Thank you.

Answers (1)