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

  1. load java server on real ip address on desktop
  2. ensure desktop on internet , ip address visible internet (open)
  3. 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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -