Answers for "C# socket bind to dns name"

C#
1

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));
Posted by: Guest on November-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language