Pops
2
Q:

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));
1

New to Communities?

Join the community