using System.Net.NetworkInformation, is there a way to bind a ping to a specific interface?

后端 未结 1 1749
遇见更好的自我
遇见更好的自我 2021-01-14 21:15

Although the Ping.Send() is easy and straightforward, I can\'t seem to figure out how to Ping.Send() out of the interface I choose. specifically my WLAN interface or my Ethe

1条回答
  •  时光说笑
    2021-01-14 21:56

    ICMP is not socket based. The ping will be sent to the appropriate port based on the routing table.

    0 讨论(0)
提交回复
热议问题