Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# socket bind to dns name

Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPAddress address = Dns.GetHostAddresses(ip)[0];
socket.Bind(new IPEndPoint(address, port));
 
PREVIOUS NEXT
Tagged: #socket #bind #dns
ADD COMMENT
Topic
Name
9+3 =