I'm trying to find the ip address of the wifi router my phone is currently connected to. I have tried the code below. It always returns the address of the phone I'm using now and not the router.
B4X:
Sub Process_Globals
Dim Server As ServerSocket
Dim router As String
End Sub
Sub Activity_Create(FirstTime As Boolean)
Log("In FindWIFIusers")
'Server.Initialize("5100","Server")
router = Server.GetMyWifiIP
Server.close
Log("Router = " & router)
Activity.Finish
End Sub