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

learn more… | top users | synonyms

159
votes
1answer
99k views

What permission do I need to access Internet from an android application?

I get the following Exception running my app: java.net.SocketException: Permission denied (maybe missing INTERNET permission) How do I solve the missing permission problem?
45
votes
7answers
140k views

No connection could be made because the target machine actively refused it?

Sometimes I get the following error while I was doing HttpWebRequest to a WebService. I copied my code below too. System.Net.WebException: Unable to connect to the remote server ---> ...
23
votes
5answers
138k views

java.net.SocketException: Connection reset

I am getting the following error trying to read from a socket. I'm doing a readInt() on that InputStream, and I am getting this error. Perusing the documentation this suggests that the client part of ...
23
votes
8answers
231k views

What's causing my java.net.SocketException: Connection reset?

We are seeing frequent java.net.SocketException: Connection reset errors in our logs for a component that calls a third party Web service that sends SMS messages. Our application is written in Java ...
17
votes
1answer
20k views

WCF: System.Net.SocketException - Only one usage of each socket address (protocol/network address/port) is normally permitted

I have a WCF service and a Web application. Web application makes calls to this WCF service in a continous manner a.k.a polling. In our production environment, I receive this error very rarely. Since, ...
14
votes
1answer
10k views

SocketException: Permission Denied?

My LogCat reads: 08-19 09:29:01.964: WARN/System.err(311): java.net.SocketException: Permission denied 08-19 09:29:02.204: WARN/System.err(311): at ...
11
votes
2answers
15k views

java.net.ConnectException - Connection Refused Android Emulator

I have an android emulator I'm running from eclipse and just trying to connect to a simple socket server I wrote in .NET (c#). The server is running on the same machine on port 4505. I am able to ...
5
votes
2answers
7k views

Getting “SocketException : Connection reset by peer” in Android

My app needs to contact the same device it is working on, via http://127.0.0.1/... (a localhost url). For some reason, about 50% of the times (and maybe exactly 50%) when I reach a website there with ...
5
votes
1answer
5k views

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 = ...
5
votes
3answers
5k views

Socket problem when using threading

Can someone please explain me why the following code doesn't work? using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Net; using ...
5
votes
6answers
2k views

C# SocketException doesn't get caught

i have a really weird sitation going on in my code. I'm developping a c# chat client-server application. When i close the server i want the client to be automatically closed. The client is reading ...
4
votes
3answers
10k views

java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind

Tomcat is running a webapp under Windows. After a few days (under very low load), the exception mentioned in the title starts to appear in the logs, no new connections can be established from that ...
4
votes
2answers
5k views

C# Async UDP listener SocketException

I have a pretty simple Asynchronous UDP listener, setup as a service, and it's been working quite well for awhile now, but it recently crashed on a SocketException An existing connection was forcibly ...
4
votes
4answers
13k views

Exception with web service ( java.net.SocketException Permission denied ) in Android

When I call a Web Service, it returns me this exception: java.net.SocketException Permission denied. I dont know waht is the actual problem. I don't know how to solve this? home.java page : try ...
4
votes
2answers
2k views

Why can't I force SSL for Sql Server Reporting Services?

I am trying to setup SSRS 2008 on Windows Server 2008. It seems to work as expected when I access the web interface through HTTP, but when using HTTPS the following error is what I get: "The ...

1 2 3 4 5 15
15 30 50 per page