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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:04:11+00:00 2026-06-17T21:04:11+00:00

I wrote a simple socket program on android, the server side sets up a

  • 0

I wrote a simple socket program on android, the server side sets up a server socket waiting for incoming connections, the client side just connect to the server by establish a connection with the server’s ip address. I’m using Sprint’s 3G Nexus S as the server, and ATT’S 4G Samsung galaxy S3 as client. When my client tries to connect, it throws out the exception”No route to destination”. But then I switched to my personal WIFI network, it worked perfectly. Can someone help me with this issue? or is there any special requirement in android to use cellular network to set up socket connection? thank you!

My client side is:

socket = new Socket(serveripaddress, 8008);
out = new PrintWriter(socket.getOutputStream());

My server side is:

ss = new ServerSocket(8008);

update: I just used 2 Sprint cellphones to test my code and it works fine!! This is just a special case in which i have to use phone as server, it is not recommended in general

  • 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-17T21:04:12+00:00Added an answer on June 17, 2026 at 9:04 pm

    Carrier firewalls typically don’t allow incoming connections to mobile devices. Doing so would leave the mobile devices open to security risks and abuse of their data limits. It can also depend on the APN used for the connection.

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

Sidebar

Related Questions

So I wrote a simple Socket program that send message from Client to Server
I wrote a simple server client socket program and when I recompile the server
I am implementing both server and client side of a simple file download program.
I wrote two simple programs server and a client using sockets in C++ (Linux).
I am writing a simple client program socket programming when compiling the code using
I have a simple programs for socket client and server its not working over
I wrote this simple Java program which connects to internic server and returns the
I have a simple program for server/client communication using sockets. The server class contains
I wrote a simple server using socket API in C under linux which listens
I am learning socket programming in c, I wrote this simple program to accept

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.