0

I want to know if the same loop back address(127.0.0.1) that we use in a computer work in android phones also.

2 Answers2

1

On all the devices I've used, yes. I use it for xmms2 IPC. You will however need to have the INTERNET permission.

Zharf
  • 2,638
  • 25
  • 26
  • 1
    Just to be clear for those new to Android development: @Zharf is talking about this [INTERNET](http://developer.android.com/reference/android/Manifest.permission.html#INTERNET) permission, added to the body of your AndroidManifest.xml file, like this: `` – sherb Sep 18 '13 at 16:36
0

Only if your phone is running a web server - A few people have done so: Running AMP (apache mysql php) on Android

Community
  • 1
  • 1
JRaymond
  • 11,625
  • 5
  • 37
  • 40
  • Why do you think so? I just tested it on my phone using Terminal Emulator. I pinged 127.0.0.1 and it worked without a problem. I'm not running any servers or anything. This was on Gingerbread. – Paul Sep 28 '12 at 19:01
  • My initial assumption was that the OP wanted to view web pages - I now realize that there isn't really anything in his question to suggest this – JRaymond Sep 28 '12 at 19:05