Solved

Problem With Java Connection Refused

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

747 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