Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
C#で指定した送信元IPを使って通信行う場合
var socket = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork,
System.Net.Sockets.SocketType.Dgram,
System.Net.Sockets.ProtocolType.Udp);
socket.Bind(new System.Net.Sockets.IPEndPoint(System.Net.IPAddress.Parse("192.168.0.4"), 0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment