Android Question ServerSocket.GetMyIp problem

Antonino Colomba

Member
Licensed User
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: 206

Antonino Colomba

Member
Licensed User
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

Antonino Colomba

Member
Licensed User
I tryed it... and i tryed again in my code and now... It's work!!
I don't understand... Only explanation: perhaps I used "/" instead of "\"
Thank you.
 
Upvote 0
Top