Solved

Problem With Java Connection Refused

Posted on 2013-06-02
4
544 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can Cisco resolve internet address internally 4 44
URL question:  WWW versus WWW1 in address line 4 57
String array comparison 4 32
printf performancy 10 22
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

816 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

7 Experts available now in Live!

Get 1:1 Help Now