Android:Socket programming between phone and system -
i trying write client server application, in client android device.
i not confident on socket programming.
i have written server side application , client side runs on emulator.
will same application work between real android device?
i have edited question (once reviewed show up). understand, question generic. works on emulator, work on device.
the answer yes. emulator connects 10.0.2.2 redirects 127.0.0.1 on host machine right ? how have got working.
to working device need following
- load java server on real ip address on desktop
- ensure desktop on internet , ip address visible internet (open)
- ensure android phone points public ip address of desktop.
now, know worry :) open ip address. so, can use ec2 (free amazon ubuntu instance), install java on , run server java -jar . eclipse can export jar file (runnable jar file) lib in jarfilename_lib path.
Comments
Post a Comment