Android Question ServerSocket.GetMyIp problem

Hi, I try to use " ServerSocket.GetMyIp " to find the IP Address.
It works, BUT I have a strange problem: the variable I obtain is not a real String (?!?!)
In fact in the debugger I see the variable having a subnode "value": for this reason I can't, for example, use a split function because I obtain a blank string.

Someone can help me?
 

Attachments

  • errore.png
    errore.png
    5.2 KB · Views: 156
B4X:
Dim InterCon As ServerSocket
InterCon.Initialize(0, "")
Dim stringaIP As String = InterCon.GetMyIP
stringaIP = stringaIP.Replace(".", ",")
Dim arrPezziIP() As String = Regex.Split(",", stringaIP)

this was my solution
 
Upvote 0
Top