Communicating between Android phone and PC using TCP in java -
i'm working on project want droid 2 able send , receive data on 3g, device connected ethernet port (not pc, i'm using testing communication). believe end end communication accomplished on ssl tunnel, right now, need establish basic communication show devices can communicate.
i've written client/server applications worked between 2 computers on same network, i'm not sure if communication in case work because of different networks phone , pc on.
i've been trying establish if can done pinging of pcs @ university , house using pinging program got off market, i've had no success far. however, friend has rooted phone, , able so.
i suppose question has 2 parts: 1) possible? , 2) need root phone accomplish this, or should able without rooting?
thanks responses.
i've written client/server applications worked between 2 computers on same network, i'm not sure if communication in case work because of different networks phone , pc on.
one potential problem can see that, depending on 3g provider, there may restriction on port numbers , protocols can used. instance, http port number may allowed unknown packet data (i.e., unidentifiable protocol) same port numbers work http, may dropped.
i've been trying establish if can done pinging of pcs @ university , house using pinging program got off market, i've had no success far. however, friend has rooted phone, , able so.
again, potential problem - ping (icmp) not test of accessing devices on other networks perimeter routers/firewalls default refuse icmp traffic (usually silently) - home dsl router/firewall silently blocks icmp default. needing rooted phone allowed use ping app - phone isn't rooted , have ping app market works fine.
i suppose question has 2 parts: 1) possible? , 2) need root phone accomplish this, or should able without rooting?
there no reason know of require phone rooted use socket-based comms, i'm wondering if trying ping across router/firewall isn't best test trying achieve.
i'd recommend starting http - don't know use program pc simple http 'listener' should easy enough put together. start listening on port 80 , try android browser - if works, change listening port 6789 (remember open ports on home router/firewall). assuming you've got working, try using socket-based stuff you've developed using wi-fi on lan, if works, try on 3g.
Comments
Post a Comment