is it always not possible this for 2 device or exist now a solution?
...yes but this is case of PC to Device.It is possible but you need to go through your router and have a fixed ip. Read this http://www.b4x.com/android/forum/th...p-to-your-b4j-server-over-the-internet.37201/
Dim hc As HttpClient hc.Initialize("hc") req.InitializeGet("http://ipecho.net/plain") hc.Execute(req, 1) Sub hc_ResponseSuccess(Response As HttpResponse, TaskId As Int) ipall.Text = "Indirizzo IP: " & Response.GetString("UTF8") End Sub Sub hc_ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int) Msgbox("Errore IP - " & Response.GetString("UTF8"), "") End Sub
Yes. This is the ip from the device calling this url.Then I get a public IP address; can I use this IP address?