Hello everyone,
I want to add a feature to my project Tracked! where u should be able to "control" your phone from your desktop.
Now I am able to connect to my device over a wifi connection and the connection is established. However, when I try to connect with my device over EDGE/3G, I cannot seem to connect with it.
These are my logs:
Port forward: Port 7890 done
Firewall: off
Logs when connected to pc with wifi:
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (b4aserverservice) Start **
Server not connected. Calling board web service.
Http success. Waiting for server to connect...
Connected = true
Sending Task #6
6 done. Success=true, msg=File saved: /mnt/sdcard/6
Connected = false
On server:
Logs when trying to connect to pc without WiFi ( So normal mobile connection over EDGE)
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (b4aserverservice) Start **
Server not connected. Calling board web service.
Http success. Waiting for server to connect...
** Activity (main) Pause, UserClosed = false **
On server: (when pressed a button.)
http://i1189.photobucket.com/albums/z428/xverhelstx/logs.png
So probably, I am able to send outgoing connections, but unable to receive them. Does anyone have an idea how I can accept them or what another thing could be that disables this, or another feature to control the phone?
Also: http://www.canyouseeme.org/ seems to have a connection refused when I try to connect with port 7890
Thank you,
XverhelstX
I want to add a feature to my project Tracked! where u should be able to "control" your phone from your desktop.
Now I am able to connect to my device over a wifi connection and the connection is established. However, when I try to connect with my device over EDGE/3G, I cannot seem to connect with it.
These are my logs:
Port forward: Port 7890 done
Firewall: off
Logs when connected to pc with wifi:
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (b4aserverservice) Start **
Server not connected. Calling board web service.
Http success. Waiting for server to connect...
Connected = true
Sending Task #6
6 done. Success=true, msg=File saved: /mnt/sdcard/6
Connected = false
On server:
C:\Users\Admin\Desktop\b4aserver>java -cp b4aserver.jar anywheresoftware.b4a.b4a
server.Server
B4A server is started. Checking URL: http://66.84.14.57/android/b4a_server.php,
server name=rootsoft
trying to connect to: 192.168.1.112:7890
Connected to: 192.168.1.112:7890
192.168.1.112:7890: stop message received.
Logs when trying to connect to pc without WiFi ( So normal mobile connection over EDGE)
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (b4aserverservice) Start **
Server not connected. Calling board web service.
Http success. Waiting for server to connect...
** Activity (main) Pause, UserClosed = false **
On server: (when pressed a button.)
trying to connect to: 10.48.34.190:7890
Error occurred while working with ip: 10.48.34.190:7890
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at anywheresoftware.b4a.b4aserver.Communicator.run(Communicator.java:36)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
http://i1189.photobucket.com/albums/z428/xverhelstx/logs.png
So probably, I am able to send outgoing connections, but unable to receive them. Does anyone have an idea how I can accept them or what another thing could be that disables this, or another feature to control the phone?
Also: http://www.canyouseeme.org/ seems to have a connection refused when I try to connect with port 7890
Thank you,
XverhelstX
Last edited: