Answers for "get sites ip in C#"

C#
-1

get sites ip in C#

var url = "https://www.google.com/";
Uri myUri = new Uri(url);
var ip = Dns.GetHostAddresses(myUri.Host)[0];
Posted by: Guest on September-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language