How to get *internet* IP?

后端 未结 15 2087
刺人心
刺人心 2020-11-29 02:57

Imagine a situation, I have PC with two lan cards, one is connected to internet another is connected to local network, how can I detect IP which is connected to internet wi

15条回答
  •  离开以前
    2020-11-29 03:53

    Here is an article which could be helpful:

    How to Retrieve "Network Interfaces" in C#

    The following code is used to retrieve the "network interfaces" in C#. You may recognize the "network interfaces" as "Network and Dial-up Connections": You can access them by using "Start > Setting > Network and Dial-up Connections". C# does not provide a simple way of retrieving this list.

提交回复
热议问题