Questions tagged [socketexception]

SocketException is the superclass of all other socket related exceptions and may be thrown during socket creation or setting options.

SocketException is the superclass of all other socket related exceptions and may be thrown during socket creation or setting options.

616 questions
10
votes
2 answers

Java Socket, binding to local port

I am trying to bind the Socket on the client side to any particular local port, in this code I used 20000. Normal connections such as below works just fine. But does not allow for me to choose the local port. hostSocket = new Socket(host,80); So I…
user2041602
  • 179
  • 1
  • 1
  • 8
10
votes
3 answers

IntelliJ Idea 11 Flex compilation issue

I have problem with completing my code. It works fine in Flash Builder. But I used it previously in Idea and it was much faster. So I imported my FB files into new Idea project. But when I try to debug I receive error message: Using built-in…
emte
  • 647
  • 1
  • 8
  • 25
9
votes
2 answers

How to correctly close a socket and then reopen it?

I'm developing a game for a class that I am in, and it is about 99% done. However, I realized there is a problem: If the server and client disconnect, and the client attempts to reconnect (and the server is back up and running fine), the client is…
user1089097
  • 155
  • 1
  • 1
  • 7
9
votes
1 answer

SocketException in Flutter

I have these exceptions on different phones, some correct way to handle them. IOS: SocketException: OS Error: Bad file descriptor, errno = 9, address = api.larvia.ai, port = 50655 SocketException: OS Error: Operation timed out, errno = 60, address…
9
votes
0 answers

javax.naming.CommunicationException: Connection reset [Root exception is java.net.SocketException: Connection reset]; remaining name

I am getting socket exception when I try to connect LDAP. Here is my sample code. I am seeing this issue in java 8. I never observed this issue in the earlier java versions. public static DirContext getDirectoryContext() throws NamingException { …
Java App Expert
  • 143
  • 1
  • 2
  • 4
9
votes
1 answer

Problem with System.Net.Dns.GetHostEntry(dnsServer) on .NET 4.0

I have been using the following code for months (without problem) in a .NET 2.0/3.5 environment: string server="192.168.1.3"; IPHostEntry ipe = System.Net.Dns.GetHostEntry(server); IPAddress ipa = ipe.AddressList[0]; IPEndPoint ipep = new…
Jason Kealey
  • 7,988
  • 11
  • 42
  • 55
9
votes
1 answer

java.net.SocketException socket is closed

I am sending Object for client to server modifying that object at server side and resending it to client. Sending object form client to server is fine its working properly but when I am sending object back it gives exception Socket is closed. Here…
user2138414
  • 91
  • 1
  • 1
  • 3
9
votes
1 answer

java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) Over WIFI

When I am sending an image which is converted into string and welcome text with the request. the server do not responds for a long time and response me as java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) This happens…
Sumit Patel
  • 2,547
  • 8
  • 33
  • 45
8
votes
2 answers

java.net.SocketTimeoutException: Read timed out

I have an application with client server architecture. The client use Java Web Start with Java Swing / AWT and the sert uses HTTP server / Servlet with Tomcat. The communication is made from the serialization of objects, create a ObjectOutput…
Rafael Soto
  • 165
  • 1
  • 2
  • 8
8
votes
1 answer

How to gracefully close an Async Server Socket? C#

I've seen a lot of questions about handling Sockets without object disposed exceptions, so I've decided to take a crack at it and see if it could be done. Here are my findings. Problem? You have a piece of code that uses a Socket from…
Aelphaeis
  • 2,593
  • 3
  • 24
  • 42
8
votes
1 answer

java.net.SocketException: sendto failed: EPIPE (Broken pipe) over a data connection to localhost

In my Android app I want to read an audio stream and parse its shoutcast metadata. I got it working using a StreamProxy as in NPR…
Romain Piel
  • 11,017
  • 15
  • 71
  • 106
7
votes
0 answers

Spark (using Scala) throws SocketException: Connection reset and SocketTimeoutException: Read timed out

I am trying to load a (very big) serialized RDD of objects into the memory of a cluster of ec2 nodes, and then do some extraction on those objects and store the resulting RDD on disk (as object files). Unluckily I get SocketException: Connection…
Javad
  • 5,755
  • 4
  • 41
  • 51
7
votes
0 answers

recover from bottle.py error: [Errno 32] Broken pipe

I have a small WebApp which consists of a small Form where the user has to input some credentials, and post it to my bottle app. The input gets validated (through a bunch of sql calls) and if everything is fine, he'll recieve a mail. The Problem…
Rafael T
  • 15,401
  • 15
  • 83
  • 144
7
votes
4 answers

SignalR Owin Self-Host on Linux/Mono SocketException when clients lose connection

I'm running very simple signalr server self-hosted via Owin on ubuntu server 14.04, mono 3.2.8. (code below). Connecting/Disconnecting works fine on both a remote windows server and when I deploy the bits to the linux server. But when a client dies…
Chris Ray
  • 4,833
  • 2
  • 20
  • 19
6
votes
1 answer

Service bus connection is not working from on-premise console application

I have created a .net core 3.1 console application for reading azure service bus queue messages and deployed the EXE in a client on-premise VM. It was working initially but now it is not working from VM (now also working from local machine). I am…
1 2
3
41 42