question

JamesHiggins-7505 avatar image
0 Votes"
JamesHiggins-7505 asked SatishBoddu-MSFT commented

Azure Sphere Application API - How to read the current default gateway.

Our application requires that IP address of the active default gateway be displayed to the end user.

Please provide an C language example of how to read the active default gateway IP address from the Sphere Application context.

azure-sphere
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered SatishBoddu-MSFT commented

Hello @JamesHiggins-7505 Maybe the below response is helpful, which was posted a few months ago.? but the below post only talks about the MAC address, I have to check on the gateway details.

https://docs.microsoft.com/en-us/answers/questions/44265/get-wifi-mac-address-using-api-on-azure-sphere.html

May be this SO post help: https://stackoverflow.com/questions/29249665/how-to-get-gateway-ip-and-nameserver-ip-using-ioctl-in-linux?noredirect=1&lq=1

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @JamesHiggins-7505 Just checking.

Please let us know if you need further help in this matter.

0 Votes 0 ·