Answers for "c# ipaddress from localhost"

C#
1

c# ipaddress from localhost

IPAddress address = Dns.GetHostAddresses("localhost").Where(x => x.AddressFamily == AddressFamily.InterNetwork).First();
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.Bind(new IPEndPoint(address, port));
Posted by: Guest on November-28-2020

Code answers related to "c# ipaddress from localhost"

C# Answers by Framework

Browse Popular Code Answers by Language