Solved

Problem With Java Connection Refused

Posted on 2013-06-02
4
538 Views
Last Modified: 2013-06-19
Hello Experts,

Each time I run an application I get the following error in the logs:

NetUtil.getLocalHostFromSwitch(x.x.x.x) error: java.net.ConnectException: Connection refused: connect

Can someone please show me how to resolve this issue?

Cheers

Carlton
0
Comment
Question by:cpatte7372
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 39214721
A possible explanation for that is often the service to which one is trying to connect is simply not running
0
 
LVL 11

Expert Comment

by:SANDY_SK
ID: 39214722
Could be anything, check the following.

1. Are you able to ping to that server on that port? (Provided pin is enabled on that server)
2. Is there any firewall on the server?
3. Are there any filters on the server that allows traffic from specific hosts only?
4. Is it on a local LAN or on a different network?

More details on what exactly is the server (Simple socket / web service/ etc.) would help.
0
 
LVL 16

Accepted Solution

by:
Valeri earned 500 total points
ID: 39215859
0
 

Author Closing Comment

by:cpatte7372
ID: 39260734
Cheers
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Loop 6 49
print map entry 34 54
Cost effective dual wan w/ qos 5 27
reverse digits of a number using for loop 5 36
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now