kcp2k icon indicating copy to clipboard operation
kcp2k copied to clipboard

Add support for multiple NICs and specifying which local IP to bind the server to.

Open PhonicUK opened this issue 3 years ago • 0 comments

On servers with multiple NICs it may be necessary or desirable to bind a server to a specific one of them instead of listening on all available NICs.

I've added the ability to do this to the KCPTransport. Now you can do:

KcpTransport.LocalIP = IPAddress.Parse("1.2.3.4");

Because of the way it uses an optional parameter and a field that initialises with the same value, this is an API compatible drop-in change.

PhonicUK avatar May 13 '21 20:05 PhonicUK