The below code has been working for a while and now it fails with:
The code is as follows:
I recently upgraded to 2.71. I don't know if this is part of the issue, but would appreciate any advice.
Thanks,
Rusty
B4X:
GetMyIP error: (ErrnoException) libcore.io.ErrnoException: bind failed: EACCES (Permission denied)
B4X:
Sub GetMyIP As String
Dim IP As String = ""
Try
Dim Server As ServerSocket
Server.Initialize(TCP.Port, "MyIP")
IP = Server.GetMyWifiIP
'IP = Server.GetMyIP
Server.Close
Catch
Log("GetMyIP error: " & LastException)
End Try
Return IP
End Sub
Thanks,
Rusty