I cant seem to get or find information on finding my routers public IP? Is this because it cant be done this way and would have to get it from a website?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
With a few lines of code you can write your own Http Server for this.
Then anytime you need to know your public ip, you can do this.
From C#, you could use the web client libraries to fetch whatismyip
I do it using
HttpClient
fromSystem.Net.Http
:Similar service
works perfect