-2

I can't figure out how to get it. I googled a lot since yesterday and I do not found any answer. Any Ideas?

Awtszs
  • 323
  • 1
  • 8
  • 33

1 Answers1

1

Loop through NetworkInterface.GetAllNetworkInterfaces() until you find the one you want, then look at GetIPProperties().GatewayAddresses.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964