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

  • Home
  • SEARCH
  • 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 4272196
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:32:42+00:00 2026-05-21T07:32:42+00:00

Seems like everyone have issue accessing local machine or internet etc from emulator. All

  • 0

Seems like everyone have issue accessing local machine or internet etc from emulator. All that works for me. Now I got my WCF service installed on my home server, port opened and I can browse just fine with a browser.

I changed URL in emulator, pointed to “real” server and it WORKS. Now, I installed app on device and it times out connecting to server (10 seconds). What do I miss?

Server is IIS7.5 with .NET WCF REST service. Device connected to 3G and I can browse my own site from web browser on device but in code it fails. Code looks like so and my url like “http://domain:8080/mobile/auth”

EDIT: Tried on another phone and it WORKS! What can be a problem? My phone is Nexus S with 2.3, I target 2.2 and my emulator 2.2 And my other phone (which works) also 2.2

Also, one phone on TMobile and another on Sprint. Is that weird issue?

EDIT 2:
Some Google search.. It might be related to T-Mobile blocking port 8080. I do post specifically and when I browse via browser it does GET, so maybe my issue there. I will try on another T-Mobile phone tomorrow.

HttpParams httpParams = new BasicHttpParams();
        HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT);
        HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT);

        HttpClient client = new DefaultHttpClient(httpParams);

        HttpPost request = new HttpPost(url);

        try
        {
            StringEntity entity = new StringEntity(requestData);
            entity.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, "application/json"));
            request.setEntity(entity);
            ResponseHandler<String> handler = new BasicResponseHandler();
            returnData = client.execute(request, handler);
        }
        catch (Throwable e)
        {
            String s = e.getMessage();
            //TODO: Log exception on device
        }
  • 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-21T07:32:43+00:00Added an answer on May 21, 2026 at 7:32 am

    Sure looks like you answered your own question there:

    //TODO: Log exception on device
    

    If you’re not getting an exception, then it sounds very much like a DNS problem. Try connecting to your local network via wifi and see if that eliminates the problem.

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

Sidebar

Related Questions

Good day everyone, i have faced with such an issue as linkage error like
Seems like a simple problem: I have an SVN repo inside our firewall. I
Seems like the subtraction is triggering some kind of issue and the resulting value
It seems like the generation of SQL scripts from the SQL Server Management Studio
Ok it seems like everyone in the world has issues with CaptureCameraDialog. In my
I have what seems to be the exact opposite of everyone else's problem! I
Seems like everyone is moving towards IoC containers. I've tried to grok it for
Seems like a simple enough question but I can't seem to find the answer.
Seems like as really simple thing to do, but I just can't track it
Seems like every C# static analyzer wants to complain when it sees a public

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.