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 6472497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:21:06+00:00 2026-05-25T06:21:06+00:00

I am implementing C2DM (possibly not relevant) in an android app testing on an

  • 0

I am implementing C2DM (possibly not relevant) in an android app testing on an emulator. I have just got the C2DM registration working with the C2DM service so now I need to register my app with my web app,

As my web app is in dev mode (Rails METAL server) it is running on http://localhost:3020

I need to know if this is reachable from the emulator as I’m not getting anything through to the web app when the registration ID is received in response to the Google C2DM registration process by the andropid app and I’m struggling to work out if I have an issue with my code or if this is because localhost is not reachable.

Thanks in advance for any information on this

UPDATE
I found out from http://developer.android.com/guide/developing/devices/emulator.html#networkaddresses that 10.0.2.2 will route to 127.0.0.1 but not sure how that would help me get to http://localhost:3020

I’m using a global variable for this

public static final String SERVER_BASE_URL = "http://localhost:3000";

Any ideas what I should set this to?

  • 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-25T06:21:06+00:00Added an answer on May 25, 2026 at 6:21 am

    Try SERVER_BASE_URL = "http://10.0.2.2:3020"; as 10.0.2.2 is going to be “your host loopback interface (i.e., 127.0.0.1 on your development machine)” as per the link you posted.

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

Sidebar

Related Questions

I'm having some trouble implementing C2DM registration. My BroadcastReceiver is never called. I'm working
Implementing a PhoneGap app for Android and iOS, the app is using Facebook Connect
I am trying to use Google c2dm for implementing an push notification for Android.
I am implementing C2DM for push notification in an android application, it need at
I am implementing the c2md, in phone android 2.2, I have follow the all
When implementing Quicksort, one of the things you have to do is to choose
implementing service something similar with tinyurl or bit.ly, I'm would like to expose service
Im implementing a B-tree in C++,I have a stack which saves pairs . my
While implementing a FIFO I have used the following structure: struct Node { T
What is the appropriate way to implement a location-based Android app that periodically sends

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.