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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:50:33+00:00 2026-05-26T08:50:33+00:00

I have a Java network server running online on a dedicated server, and I

  • 0

I have a Java network server running online on a dedicated server, and I have an Android network client written with Android SDK and java.

It’s working fine if the android device is connected with WIFI, but if I connect the device using 3G, the socket is closed when I call: readInt() from the client. It’s not happening at the first call, but later. It looks very random, and it’s hard to explain, but it may happen when there is no data too read any more (or not). The exception is SocketException connection reset by peer.

I would like to explain more specifically, but it is very hard to debug, and to my point of view, it looks like an Android bug (not sure about that). And that’s why i’m asking this question. Because for sure someone has encountered the same problem.

What could be the difference between a WIFI connection and a 3G connection for an android device, that would produce such a disconnection ? What could possibly be a fix for this ?

Thanks if anyone can help.

Edit: My 3G connection is NOT breaking. It’s the socket that is beaking, and only the socket. And it only happens if I connect in 3G. Not in WIFI.

  • 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-26T08:50:34+00:00Added an answer on May 26, 2026 at 8:50 am

    I found the answer: Several 3G network providers close their customers’ sockets in order to make more profit. The only solution is to artificially slow down the traffic.

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

Sidebar

Related Questions

I have a application server for network operations written with Java based on Apache
I'm working on a server written in Java, and a client (a desktop application
I have a web-based application and a client, both written in Java. For what
i have a very simple turn-based online game in java. the client talks to
I'm using Java to create a client/server application that communicates using TCP. The network
I have a java program acting as a Network server. Thanks the the utility
I have Java and Flash client applications. What is the best way for the
I have developed a java servlet that monitors a folder on a network drive
I have a Java application that registers a server component in a service provider,
I have a java program which has a server-socket listening infinitely. In case of

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.