This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Connection problems Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Connection problems" Watch "Connection problems" New topic
Author

Connection problems

Arnout Boks
Greenhorn

Joined: Mar 28, 2005
Posts: 2
Hi,

I'm building an application that uses a Socket to connect to a server over TCP. When I'm running the application, I sometimes get disconnected (with or without a "connection reset by peer"-error). It's almost sure that the server didn't disconnect me. After I get disconnected, my internet connection is down (also on another computer behind the router), and I have to reboot my router to get it back working.

Could this have to do with my (NAT)-router? If so, how can I fix this (where do I have to look for)?
Is there any way to solve this in the Java-code?

Thanks for any help.
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
It sounds like there's a problem with your router. It's extremely unlikely that anything you send in a random socket could cause the router to drop all connections for all devices until it's rebooted.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Connection problems
 
Similar Threads
trying to connect to another ip adress
Visibility of web site on port 8088
Connection timeout issues
Wireless Access point question
Connection refused, Socket Help