Link to home
Start Free TrialLog in
Avatar of cpatte7372
cpatte7372Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Problem With Java Connection Refused

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

A possible explanation for that is often the service to which one is trying to connect is simply not running
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.
ASKER CERTIFIED SOLUTION
Avatar of Valeri
Valeri
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cpatte7372

ASKER

Cheers