Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Router.Device.Net

Use the UPNP discovery protocol to obtain the external IP address of the network router

examples

using Router.Device.Net;

Console.WriteLine("Hello, World!");
var routers = RouterDeviceNet.FindRouters("以太网").Result;
foreach (var router in routers)
{
    var ip = router.GetExternalIPAddress().Result;
    Console.WriteLine("==============================================");
    Console.WriteLine($"DeviceName:{router.friendlyName}");
    Console.WriteLine($" DeviceUrl:{router.presentationURL.Trim()}");
    Console.WriteLine($" IPAddress:{ip}");
}
Console.ReadLine();

About

Use the UPNP discovery protocol to obtain the external IP address of the network router

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages