Questions tagged [connectexception]

77 questions
3
votes
5 answers

Error in sending mail - ConnectException

I have used the following Java code to send email. import java.util.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; public class SendEmail { public static void main(String [] args) { String to =…
Biswajit das
  • 51
  • 1
  • 2
  • 7
3
votes
4 answers

Multiple sockets cause ConnectException: Connection refused: connect

I am programming java in Eclipse on Windows XP. I have a multiprocess simulation which uses ProcessBuilder to run a server and two clients. The server starts a thread to listen to two different sockets - one for each client. I can comment out the…
David K
  • 1,296
  • 18
  • 39
2
votes
1 answer

ConnectException vs. IOException when wiFi is disabled?

I tried connecting to an IP address (e.g. http://222.222.222.222:8080) and a URL (e.g. http://www.website.com) while my wiFi is disabled. I noticed that if I don't have a wiFi and I tried connecting to an IP address, it gives me a ConnectException…
Arci
  • 6,647
  • 20
  • 70
  • 98
2
votes
0 answers

Unable to open debugger in IntelliJ IDEA 2017.2.7

I am unable to open debugger in IntelliJ IDEA 2017.2.7 and getting the error message- "Unable to open debugger port(localhost:57226):java.net.ConnectException" "Connection refused:connect" I tried changing the port number from Run/Debug…
Tripti Saigal
  • 21
  • 1
  • 3
2
votes
2 answers

java.net.ConnectException: failed to connect to /192.168.1.107 (port 80) after 10000ms: isConnected failed: EHOSTUNREACH (No route to host)

I'm trying to connect my REST API from localhost with android application. I'm using xampp as my apache serever on my Windows. The rest api works correctly when I'm trying to get from my computer using this link via…
Saman Sattari
  • 3,322
  • 6
  • 30
  • 46
2
votes
1 answer

java.netConnectException error when connecting to iSeries with IFSFileInputStream

I have a simple Java program (using JTOpen) to connect to an iSeries and open a IFS file: System.out.println("by ipaddress"); AS400 as400 = new AS400("130.3.3.333", "user", "password"); System.out.println("as400 connected? = " +…
oidsman
  • 385
  • 1
  • 5
  • 17
2
votes
0 answers

How to do Distributed testing using JMeter in Azure VMs over firewall

I am trying to do distributed testing using JMeter over Azure VMs behind the firewall using the conventional ways defined in most of the articles. I have tried all the possible options defined in the following site and some other websites. I tried…
2
votes
1 answer

Netty 4.0.x Correctly catch a ConnectException

I'm developing an application with Netty and I need to handle the ConnectException on the client side thrown in case, for example, of a connect timeout. Here's the code import io.netty.bootstrap.Bootstrap; import…
DanTheMan
  • 191
  • 4
  • 11
2
votes
0 answers

java.net.ConnectException: Connection timed out: connect while sending message using java

I have a requirement where i have to send sms from PC to mobile. The code which i have implemented works perfectly on my machine at home but it fails and throws Exception when i run the code in my organization. I get Exception…
sTg
  • 4,313
  • 16
  • 68
  • 115
2
votes
3 answers

Sockets won't work in network

I am working on an application that sends files via the network. I used 2 classes to send and to receive the file that I selected. The problem that I have faced, when I am working on localhost, is that the process goes correctly, but when I change…
Zakaria Marrah
  • 755
  • 6
  • 15
  • 28
2
votes
1 answer

Chat application in Java over the Internet | ConnectException (connection timed out)

I'm trying to develop a basic chat application. I've written the required codes for both the server and the client, and the application works perfectly fine over the LAN. When I tried to make it work over the Internet, however, I got stuck. I…
etua
  • 83
  • 8
1
vote
2 answers

remote Tomcat server : java.net.ConnectException: Connection refused

I have been trying to find an answer to my question but couldnt. Now, my java web application runs perfectly on my local Tomcat server (6). It connects to a remote mysql database on db4free.net. When uploading my web application on eatj.com (running…
Doaa A.
  • 129
  • 1
  • 2
  • 11
1
vote
0 answers

java.net.ConnectException when running MPJBOOT on linux cluster

I followed the steps on page http://mpjexpress.org/docs/guides/linuxguide.pdf, and I can start daemons on all machines. If I just run program on single server, it runs successfully [ip1,master] MPJ Daemon started successfully with process id:…
1
vote
1 answer

java.net.ConnectException : Validating Xml against XSD : local machine

I need to validate an XML against a local XSD and I do not have a internet connection on the target machine (on which this process runs). The code look like below : SchemaFactory factory =…
Abhishek
  • 11
  • 2
1
vote
1 answer

Azure notification hub java.net.ConnectException: Connection timed out: no further information

am trying to use Azure notification hub, via Java. When trying to do create registration, I get a java.net.ConnectException: Connection timed out: no further information. Can someone help me understand why this issue may come? Pls let me know if you…
csharpnewbie
  • 789
  • 2
  • 12
  • 33