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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:49:20+00:00 2026-06-01T03:49:20+00:00

I am writing a code where the android phone is the client trying to

  • 0

I am writing a code where the android phone is the client trying to connect to the server on my pc USING WIFI. I am opening the sockets as follows:

try {
  servsock = new ServerSocket(13299);
  System.out.println("Listening :13299");
} catch (IOException e) {
  e.printStackTrace();
}

while (true) {
  Socket sock = servsock.accept();

and on client side:

Socket sock = new Socket("192.168.0.108", 13299);
Log.i("sending","sending");

However I am receiving on the logcat: “No route to host” I have searched and inserted permission to use internet in the manifest.xml and did a ping from my phone with ip 192.168.0.107 to the pc server with ip 192.168.0.108.

What Am I missing? Why isn’t the tcp socket connection established ? the server is written in netbeans. Does it have to do with the ports?

EDIT: I think the problem is in the IP addresses. I set the address of the server (private address) according to the output of “ipconfig” in cmd window.

  • 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-06-01T03:49:21+00:00Added an answer on June 1, 2026 at 3:49 am

    I had the same issue, i changed the internet access point and the app worked. My app was using a local IP to access the server.

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

Sidebar

Related Questions

I was writing some native code on Android using NDK(jni). I want to turn
I am trying to writing code so that my android application can query a
I'm writing code targeting ARM Cortex-A on Android devices (using GNU assembler and compiler),
I am writing some android code in preparation for a graphics intensive app I
I'm looking into writing simple graphics code in Android and I've noticed some synchronized()
When writing code in C/C++ using MPI, if memory is allocated before MPI_Init is
i'm currently writing on some piece of code in android 2.1 that is supposed
I'm writing an Android app for work that shows the status of our phone
I'm writing an application that synchronize android contact info with server info. After server
I'm developing an Android game. At the moment I'm writing code that should calculate

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.