Thread: Client Server

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Client Server


    Hi,

    I developed un application (APK) to send a simple string to server in java (PC).
    When i try to run the APK on the emulator with IP (10.0.2.2) i can receive the string in server, but when i put the apk in my device Google Nexus One with network IP (192.168.1.3), nothing happen.
    I'm sure about IP of my device.
    Any ideas?

    Btw, there is any possibility to know the IP of device in server? or the server in device? i don't want write the IP every time when I run the APK.

    Tks!
  2. #2
  3. No Profile Picture
    Still Learning
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Location
    Montreal, Canada
    Posts
    55
    Rep Power
    40
    You did not mention the network setup. Is the java based server on the 10.network.

    How are your 10.network and 192.168.Network connected?

    Remember neither of these networks are routeable.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0
    Hi,

    Problem solved?

IMN logo majestic logo threadwatch logo seochat tools logo