Menu

I've adjust ip and port of the client project to my values.

2014-05-19
2015-12-31
  • zhengjingke

    zhengjingke - 2014-05-19

    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
  • Cardoiak

    Cardoiak - 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.

     
    • zhengjingke

      zhengjingke - 2014-05-20

      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 ? :)

       
    • iltaf khalid

      iltaf khalid - 2015-12-31

      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 ?

       
  • Cardoiak

    Cardoiak - 2014-05-20

    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/..."}}

     
    • zhengjingke

      zhengjingke - 2014-05-22

      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. :)

       
    • zhengjingke

      zhengjingke - 2014-05-28

      Hi,

      I was wondering whether you have the time for helping me , even if a little hint.

      Thanks a million.

       
      • sams

        sams - 2014-11-19

        for me it worked after changing the values in connectionhandler.java
        it takes some time to connect. did you wait long enough?

         
        • iltaf khalid

          iltaf khalid - 2015-12-31

          How did you change IP in connectionHandler.java ?

           

          Last edit: iltaf khalid 2015-12-31

Log in to post a comment.