NetworkEndPoint IP address

Hello!
I’m making my game and I need to get the IP address from NetworkEndPoint.
I can only get the port but the class doesn’t have any other functions.
I also can’t figure out how the data byte buffer works.

var address = _driver.RemoteEndPoint(connection);
/// Ip from where?

Thanks.

1 Like

You really don’t have to do this on your own unless you want to. A lot of solutions cover this layer and enable you to send messages to players in a room/match, etc…

I simply searched for “networking in C#” and found this: https://www.c-sharpcorner.com/technologies/networking
The article “Socket Programming In C#” looks like something you could start with.

Have fun!