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
Get JetBrains IDEs to Remember Subversion (SVN) CredentialsNovember 3, 2026
Converting a Thinkpad from Windows 11 to Linux MintOctober 29, 2026
Raspberry Pi Camera Trap and Animal Detection ProgramAugust 29, 2026
Python Tip: Fix Incorrect Orientation of Digital PhotosAugust 8, 2026
EBT Weather is now available for Windows and LinuxMay 30, 2026
Node.js + Express: How to Block Requests by User-Agent HeadersJanuary 7, 2026
Vault 3 is Now Available for Windows on ARM Machines!December 13, 2025