-1

I want to know gateway address of current connected wifi through objective C programming.

I have gone through some online reference in stackoverflow but none of them is useful. Please know me the.

As for now I am able to get IP address, Mask but has been stuck in gateway.

Ajay_Kumar
  • 1,381
  • 10
  • 34
  • 62

1 Answers1

0

You can programatically make a call to execute a terminal command using system(); and parse the output, or follow the advice in this question: Objective-C : How to fetch the router address?

Community
  • 1
  • 1
Woodstock
  • 22,184
  • 15
  • 80
  • 118