Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5978379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:30:27+00:00 2026-05-22T21:30:27+00:00

As part of learning Node.js, I decided to use it a s a server

  • 0

As part of learning Node.js, I decided to use it a s a server side for an Android client.
I deployed a Ubuntu 11 VirtualBox with Node, NPM, Android SDK and Netbeans 7 – and went to it.

The problem: I cannot access my local host from the emulator.

Here’s what I tried:
1. The Node “hello world” script:

var app = require('express').createServer();

app.get('/', function(req, res){
    res.send('Hello World\r\n');
});

app.listen(3000);

2. Terminal > ifconfig returned ‘inet addr:10.0.2.15’
3. Terminal > curl 10.0.2.15:3000 -> “Hello World”
4. Browser > http://10.0.2.15:3000 -> “Hello World”
5. Android emulator > app trying to access http://10.0.2.15:3000 -> “Connection to http://10.0.2.15:3000 refused”
6. Android emulator > Android browser > http://10.0.2.15:3000 > “web page not available”

Just to verify, I did Android emulator > Browser > any other page – works.
So it looks like the Android Emulator cannot access the local VirtualBox IP.

I have no firewalls running inside the VBox, and I know of no setting inside the emulator I can change. At first I thoyght it was my app (although it’s a dummy “get url” small app with android.permission.INTERNET in its manifest), but I can’t even reach it from the browser.

Any direction or idea I missed?
Your time and assistance is appreciated!

Guy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:30:27+00:00Added an answer on May 22, 2026 at 9:30 pm

    Got it (I think!)
    Thanks to cababbunga’s comment, I started searching for “Emulator IP” and found this question with the answer that the local machine can always be reached at 10.0.2.2.
    I tried it and it works in both the browser and the app!

    Thanks for putting me on the right track!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As part of learning jQuery, I decided to do a simple tic-tac-toe game in
I am learning to use LabVIEW as part of my honours project, and was
Part of a new product I have been assigned to work on involves server-side
I've been learning how to use Python for the better part of today after
As part of learning android, I am following the NotePad tutorial One thing I
I just uploaded my first ASP.NET (as part of my learning of vb.net) and
I'm learning DirectX as part of a hobby project. I've been looking for some
I just started learning C but I don't understand this part of the code.
I'm learning SharePoint development. I read some general how to build a web part,
I am very new to Erlang and as part of my learning exercise, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.