Answers for "c# get public ip"

C#
0

c# get ip address

var httpClient = new HttpClient();
var ip = await httpClient.GetStringAsync("https://api.ipify.org");
Console.WriteLine($"My public IP address is: {ip}");
Posted by: Guest on January-06-2021
1

get public ip

dig +short myip.opendns.com @resolver1.opendns.com
Posted by: Guest on April-16-2020

C# Answers by Framework

Browse Popular Code Answers by Language