Get external IP address over remoting in C#

前端 未结 12 1687
夕颜
夕颜 2020-12-05 05:16

I need to find out the external IP of the computer a C# application is running on.

In the application I have a connection (via .NET remoting) to a

12条回答
  •  情歌与酒
    2020-12-05 05:56

    If you just want the IP that's bound to the adapter, you can use WMI and the Win32_NetworkAdapterConfiguration class.

    http://msdn.microsoft.com/en-us/library/aa394217(VS.85).aspx

提交回复
热议问题