Unofficial API for WhatIsMyIPAddress in .NET Standard
NuGet: https://www.nuget.org/packages/WhatIsMyIPAddress.API
This API provides synchronous and asynchronous methods
varclient=newClient();// To use a proxyvarclient=newClient(newWebProxy("169.57.1.84:8080"));To get your IP
// Syncvarip=client.GetMyIPAddress();// IPv4 by defaultvaripv4=client.GetMyIPAddress(System.Net.Sockets.AddressFamily.InterNetwork);varipv6=client.GetMyIPAddress(System.Net.Sockets.AddressFamily.InterNetworkV6);// Asyncvarip=awaitclient.GetMyIPAddressAsync();varipv4=client.GetMyIPAddressAsync(System.Net.Sockets.AddressFamily.InterNetwork);varipv6=client.GetMyIPAddressAsync(System.Net.Sockets.AddressFamily.InterNetworkV6);Lookup IP Tool
This tool provides details about an IP address. It's estimated physical location (country, state, and city) and a map.
vardetails=client.LookupIP(ip);vardetails=awaitclient.LookupIPAsync(ip);Advanced Proxy Check Tool
If you are using a proxy server use this tool to check and see if any information is being exposed.
varproxy=client.ProxyCheck(newWebProxy("138.68.240.218:8080")).IsProxyServer;// sets timeout to 20 seconds and number of tries (try again if request fails) to 2 [Optional]varproxy=client.ProxyCheck(newWebProxy("138.68.240.218:8080"),TimeSpan.FromSeconds(20000),2).IsProxyServer;varproxy=(awaitclient.ProxyCheckAsync(newWebProxy("138.68.240.218:8080"))).IsProxyServer;Blacklist Check Tool
This tool will check to see if your IP address is listed with more than 100 DNSbl's as a machine that mail should not be accepted from.
varblacklist=client.BlacklistCheck(ip);varblacklist=awaitclient.BlacklistCheckAsync(ip);varvalidityPercent=result.GoodPercent;This tool provides the hostname of an IP address. (ie 192.168.1.1)
varhostname=client.LookupHostname(ip);varhostname=awaitclient.LookupHostnameAsync(ip);This tool provides the IP address of a hostname (ie www.yahoo.com)
varresultIPs=client.LookupIPAddress("www.yahoo.com");varresultIPs=awaitclient.LookupIPAddressAsync("www.yahoo.com");Full Test Example Here