Hi all, my title may confuse and im sorry for that!
I have succesfully created an iOS app used to Remote an Android App using:
https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/
And thats awesome!
However i would like to bypass the IP input by a way to sniff for potential candidates (There may be more than 1 Android App requesting to be remotely controlled via Wifi)
So far i've done something like this:
And honestly i am almost 100% positive its not the right way to go! I find it long and unreliable...
Any ideas?
Thanks
Y.
I have succesfully created an iOS app used to Remote an Android App using:
https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/
And thats awesome!
However i would like to bypass the IP input by a way to sniff for potential candidates (There may be more than 1 Android App requesting to be remotely controlled via Wifi)
So far i've done something like this:
B4X:
Dim server As ServerSocket
Dim myip As String = server.GetMyIP
Dim subip As String = myip.SubString2(0,myip.LastIndexOf(".")+1)
Dim lastip As Int = 255
isSearching = True
For i=0 To lastip Step 1
Dim newip As String = subip&i
ConnectToServer(newip)
Sleep(150)
Next
And honestly i am almost 100% positive its not the right way to go! I find it long and unreliable...
Any ideas?
Thanks
Y.