C#で指定した送信元IPを使って通信行う場合
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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