L lomosami Member Licensed User Longtime User Feb 17, 2016 #1 Hello. Is there the possibility to use tcp/ip over internet in a secure way using SSL or other method? I know it is possible using okhhtp but in this case I have to implement a web service.. Is there another way to have secure/encrypt tcp ip connection? Thanks in advance
Hello. Is there the possibility to use tcp/ip over internet in a secure way using SSL or other method? I know it is possible using okhhtp but in this case I have to implement a web service.. Is there another way to have secure/encrypt tcp ip connection? Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Feb 18, 2016 #2 What are you connecting to? It is not possible to connect to another device unless the "server" device is connected to a properly configured local network. See this thread: https://www.b4x.com/android/forum/t...-your-device-over-the-internet.26611/#content Upvote 0
What are you connecting to? It is not possible to connect to another device unless the "server" device is connected to a properly configured local network. See this thread: https://www.b4x.com/android/forum/t...-your-device-over-the-internet.26611/#content
L lomosami Member Licensed User Longtime User Feb 18, 2016 #3 The connection involves an android phone and an embedded board. The board is in a local LAN. Yes I know that is possible to reached the board with the service you described (No-IP Android client). But to connect over internet the 2 device in a secure way is possible to use socket and serversocket (Network lib) ? If no, how is the best way to do this? Upvote 0
The connection involves an android phone and an embedded board. The board is in a local LAN. Yes I know that is possible to reached the board with the service you described (No-IP Android client). But to connect over internet the 2 device in a secure way is possible to use socket and serversocket (Network lib) ? If no, how is the best way to do this?
Erel B4X founder Staff member Licensed User Longtime User Feb 18, 2016 #4 ServerSocket doesn't support SSL. Is this a linux board? Upvote 0
L lomosami Member Licensed User Longtime User Feb 18, 2016 #5 Thanks for the reply. It is not a Linux board. It is a board with ESP8266 micro that support SSL protocol. I think if the board was Linux board the best solution is to use ssh protocol. But in this case what do you suggest to do? And in another configuration?(configuration n.2) When connection involves two android phone? Have I to implements a webserver and use httpok lib to use secure connection? Or another simpler solution? Thanks Upvote 0
Thanks for the reply. It is not a Linux board. It is a board with ESP8266 micro that support SSL protocol. I think if the board was Linux board the best solution is to use ssh protocol. But in this case what do you suggest to do? And in another configuration?(configuration n.2) When connection involves two android phone? Have I to implements a webserver and use httpok lib to use secure connection? Or another simpler solution? Thanks
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2016 #6 You can use the network library to create SSL sockets. It doesn't matter whether the connection is over the internet or in the local network. The ESP board will need to be the server. lomosami said: Have I to implements a webserver and use httpok lib to use secure connection? Click to expand... This is only possible with B4J (not Android). Upvote 0
You can use the network library to create SSL sockets. It doesn't matter whether the connection is over the internet or in the local network. The ESP board will need to be the server. lomosami said: Have I to implements a webserver and use httpok lib to use secure connection? Click to expand... This is only possible with B4J (not Android).
L lomosami Member Licensed User Longtime User Feb 19, 2016 #7 Thanks Erel for your reply. To use android to android scenario should be very useful to implement ServerSocket with SSL support or create a webserver with SSL communication.. Upvote 0
Thanks Erel for your reply. To use android to android scenario should be very useful to implement ServerSocket with SSL support or create a webserver with SSL communication..