kcp2k
kcp2k copied to clipboard
Add support for multiple NICs and specifying which local IP to bind the server to.
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.