Hello, i think there would be problem in your network, since i have succesfully connected my client application to server using android 4.2 . Try to use netcat for example to connect to your server from a user station. There might be a problem on firewall.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a totally rookie. It's very nice of you for answering my question.
But when I connect to my server using netcat ( nc (my ip) (my port) ), it appears nothing, is it connected successfully ? what else command line order should I use to verify the problem ? :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have deployed the server on my laptop with as: java -jar redpin.jar 8000
but still I cannot connect frm my android phone after setting the correct IP and port values.
I noted one thing, when I ctrl+c my running server, it says "Server stopped at 0.0.0.0:8000"
So it seams like the server IP is not set correctly on my laptop. How to do that ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've adjusted ip and port of the client project to my values.
What else should I do? Now it doesn't work.
Or maybe I should run it on a lower android version instead of 4.2 ?
Last edit: zhengjingke 2014-05-19
Hello, i think there would be problem in your network, since i have succesfully connected my client application to server using android 4.2 . Try to use netcat for example to connect to your server from a user station. There might be a problem on firewall.
Thank you !
I'm a totally rookie. It's very nice of you for answering my question.
But when I connect to my server using netcat ( nc (my ip) (my port) ), it appears nothing, is it connected successfully ? what else command line order should I use to verify the problem ? :)
I have deployed the server on my laptop with as: java -jar redpin.jar 8000
but still I cannot connect frm my android phone after setting the correct IP and port values.
I noted one thing, when I ctrl+c my running server, it says "Server stopped at 0.0.0.0:8000"
So it seams like the server IP is not set correctly on my laptop. How to do that ?
Hello again,
you can verify the connection using this command:
{"action":"setMap","data":{"mapName":"YOUR MAP NAME","mapURL":"http://your-url.org/..."}}
as this should set a link on a map image into the system and you should get an answer from server like this:
{"status":"ok","data":{"mapName":"YOUR MAP NAME","mapURL":"http://your-url.org/..."}}
Thank you !
I've tried it. The result it returned was like yours.
So there is not any problem on my firewall, right?
And I have another question. Should I change any other values? I only altered ip and port in the file named "ConnectionHandler.java". Am I wrong ?
Your answer is a great help. :)
Hi,
I was wondering whether you have the time for helping me , even if a little hint.
Thanks a million.
for me it worked after changing the values in connectionhandler.java
it takes some time to connect. did you wait long enough?
How did you change IP in connectionHandler.java ?
Last edit: iltaf khalid 2015-12-31