b4aserver won't connect

derez

Expert
Licensed User
Longtime User
Hi
I run the b4a server example http://www.b4x.com/forum/additional...l-updates/9679-b4aserver-files.html#post53630 from my device (which runs in a local network) as is and it does not connect to the server.
I made the modifications to the desktop php file, changed URL line to be:
BoardUrl=http://192.168.0.104/b4a_server.php
(this is my desktop's ip)
I run the batch file - it runs and does not finish running (keeps blinking).
In the device program I changed to
B4X:
B4AServer.Initialize("http://192.168.0.104/b4a_server.php", ServerName, "Main")
I run it with and without bridge connection and the server does not connect when clicking any of the buttons.
The message is always success=false, and the reason - task cancelled.

I tried both win7 and xp desktops.

the log:
** Service (b4aserverservice) Start **
Server not connected. Calling board web service.
Error connecting: org.apache.http.conn.ConnectTimeoutException: Connect to /192.168.0.104:80 timed out
Connected = false
Task=1 completed. Success=false, Message=Task cancelled

Help ?
 
Last edited:

derez

Expert
Licensed User
Longtime User
Erel
I agree, this shows that something is wrong.
Other php files are going well : the hello.php, the index.php , when they are called from the browser of a device, using http://192.168.0.106/....php , they do not return as text without action.

But the first problem is that I cannot run the batch file without errors. The first error is :
ip address should end with the port <111.222.111.222:8888> :
I tried to add the port 192.168.0.106:80 but it is still the same.
 
Upvote 0
Top