Mark Hill
Mark Hill

Reputation: 161

Localhost Rejecting Connection from Application

So I've got an application I'm going to be building onto but I can't get it working because Tomcat won't start (error message below). I've found the property file where I can adjust the values listed in the error message, but nothing I try works.

Connection Error: Connection refused: connect (Address=127.0.0.1, Port=1412)

broadcast error message CONNECTION Properties: {PORT=1412, USER=Mark, IP=127.0.0.1, AM=ALL, GATEWAY=http://192.168.0.4:80/gateway-web/gatewayService}

reconnecting... 

I've pretty much ruled out another program using the same port, and I've adjusted the user value as well... Is there any way to troubleshoot connecting to localhost? Maybe via the command line?

Any help would be hugely appreciated!

Upvotes: 0

Views: 830

Answers (1)

hughjidette
hughjidette

Reputation: 136

Check your firewall rules, your firewall could still prevent non well-known ports or some form of that.

Have you also verified your app is listening on that port via netstat command on localhost? See here if you don't know how: Command line for looking at specific port

The only other thing I could think of is SELinux (only applies if you are running on Linux) could be doing some mischief here, try turning it off, if it's not already disabled, command would be:

setenforce 0  

Upvotes: 1

Related Questions