Android Question RDC Error: org.apache.http.conn.ConnectTimeoutException: Connect to /x.x.x.x:17178 timed out

Mahares

Expert
Licensed User
Longtime User
I am trying to display few records from a table with SELECT statement using RDC with a local SQLite database. The PC is connected to a Comcast modem. IPConfig showed IPs of 10.0.0.1 and also 10.0.0.13. I tried both of them. I even looked up on the web what the local PC’s IP is and it showed me something like: 71.60.235.240. I tried all 3 IPs. But, I always get the below timeout message about 30 seconds after I click the activity on the device. After spending two days struggling and reading the tutorials:

Error: org.apache.http.conn.ConnectTimeoutException: Connect to /10.0.0.1:17178 timed out

I have Port 17178 enabled. I even tested by temporarily turning of Firewall completely. The Browser test shows successful every time.

Thank you for any tips.
 

Attachments

  • RDCconfig.png
    RDCconfig.png
    45.7 KB · Views: 337

Mahares

Expert
Licensed User
Longtime User
The tablet and PC are not connected to the same local network. Are they supposed to?
I ran the tablet browser test like this using 3 separate URLs:
http://71.60.xxx.xxx:17178/?method=eedroid_be. I also tried: http://10.0.0.13:17178/?method=eedroid_be But nothing happened. I even replaced eedroid_be with test and still the browser says: did not match any document.
The B4A example I used was the one you posted in RDC_client.zip except that I changed it to my database which is called eedroid_be.db and ran a SELECT statement on a given table. I might be really lost like many others that I noticed when I was studying the RDC tutorial.
Thank you for answering
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Here is my situation:
I have 3 PCs connected to the same home network. all connected to the internet via one Comcast cable modem. No routers are involved. All three show the same public IP as 71.60.2xx.2xx when I look up the IP from a site like mylocation.org. Each PC shows a different local IPv4 address when I use ipconfig. The private IPs have this format: 10.0.0.x. If I run the Android application from the tablet to connect with the SQLite database in any of the three PCs, I get the same log error:: Error: org.apache.http.conn.ConnectTimeoutException: Connect to /10.0.0.1:17178 timed out
What kind of work do I need to do to get to view data on the tablet from the database located in any of the PCs.
Thank you
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
No. The tablet is not connected to the network as I mentioned earlier in post#3, only to the same WiFi.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
@Erel:
I read the information in the link you provided. But, it talks about configuring router which I do not have.
What is the tablet ip address (the internal address)?
1. The IP when I connect via B4A bridge is: 10.0.0.3. Is this what you call internal address. If not how do you obtain it?
2. What test do you run to see if the tablet is connected to the same network or not?
 
Upvote 0

tigrot

Well-Known Member
Licensed User
Longtime User
Sure. I spent 30 years in networking, from serial (RS232 RS422 etc.) to Bluetooth and Wi-FI. (zig-bee as well). I go on learning every day also today I'm near to 61. The only thing I don't understand is Apple policy for their APP Store. 15 days ago I published the 4th version of an app and they rejected because I didn't put the disclainer "Continuous use of background location can reduce battery life". Now it's on review again, hope that the new disclaimer likes them! 15 days and I know how much money I loose!
 
Upvote 0
Top