The Thunkable Library: How Does my Android Device Connect Over Wifi?
A feature of Thunkable allows users to connect a device to a PC over wifi to test their apps. Below we explain in more detail how this process works.
To use the Thunkable connection over wifi, a user must download the Thunkable App via the Google Play Store, aand install it on a phone or tablet.
The Thunkable Live app allows a user to make a connection between the Android device and PC over the Thunkable RendezVous Server.
The Android device must be using Wifi and not the cell network for Internet connectivity.
How the Thunkable RendezVous Server works
Your PC checks in with a 6-character code generated by the Thunkable Live app
Thunkable RendezVous Server records the IP address of your PC
Your Android device checks in with a 6-character code
Thunkable RendezVous Server records the IP address of your phone
Thunkable RendezVous Server tells the device and computer with the matching 6-character code the other's IP address
Device and computer communicate directly using IP
Ideally our network situation should look like this:
Connecting over the Phone Over Wifi Troubleshooting
Try the following steps to troubleshoot your wireless connection.
Try to reach http://rendezvous.thunkable.com:3000/ from your PC. It should return a blank white page. If it returns an error, that is an issue and you can write in to Thunkable support.
Try to reach http://rendezvous.thunkable.com:3000/ from your Android device. It should return a blank white page. If it returns an error, that is an issue and you can write in to Thunkable support.
If the steps above both work, try using the "ping" command to ping to the IP Address of the phone (displayed by the Thunkable Live app on the main screen). If you are using windows, type "ping" + IP address of the phone in cmd.exe window, if you are using mac or linux, type type "ping" + IP address of the phone in terminal window. Detailed instruction see http://www.wikihow.com/Ping-an-IP-Address
If all of these steps succeed and Wireless Thunkable still doesn't work, then there may be a firewall between the computer and phone that is blocking ports 8001 and 9987. If you have a "telnet" program you can attempt to telnet from the computer to the phone on these ports. If the connection won't complete, then there is likely a firewall in place that is blocking connections to the phone
If you do not pass step 4, your network most likely looks like this.
Many networks have firewalls set up that block connections to the phone. A way to get around this is to use your own or a local computer as a wifi router and have all computers and devices using Thunkable connect to the network using the new router. For detailed instruction setting up a computer as a router, see http://www.wikihow.com/Create-a-Wireless-Network
Why is my phone still not connecting?
Check that your device is connected to Wifi and not the cell network. On some devices and in some locations, even with WiFi enabled, the phone continues to use the cell network. If this is happening to you, you can disable mobile networking (cell phone carrier based Internet connectivity) from your device's Android settings menu.