Eric Bergman-Terrell's Blog

Android Programming Tip: How to Target Localhost from the Android Browser
September 1, 2015

When you're running an Android Virtual Device, and want to target localhost on your development machine, browse to http://10.0.2.2. Specify a port if necessary, for instance: http://10.0.2.2:3000.

Keywords: Android, localhost, 127.0.0.1, port, web browser, http, AVD, Android Virtual Device

Reader Comments

Comment on this Blog Post

Recent Posts

TitleDate
How to decompile Java code with JetBrains IntelliJ IDEA (2018.2.3, Windows 10)October 5, 2018
Java Programming Tip: SWT Photo Frame ProgramOctober 31, 2016
Vault 3 (Desktop) Version 1.63 ReleasedSeptember 9, 2016
"Compliance with Court Orders Act of 2016"April 9, 2016
Disable "Visual Voicemail" on Android / T-MobileJanuary 17, 2016
IPv6 HumorDecember 10, 2015
Java Programming Tip: Specify the JVM time zoneDecember 7, 2015