Questions tagged [connection-refused]

Connection refused: A message provided when a remote server is not listening on a particular IP:Port or a firewall is rejecting a connection with icmp-port-unreachable.

Filter by
Sorted by
Tagged with
159 votes
3 answers
990k views

What causes the 'Connection Refused' message?

This is a Canonical Question about Connection Refused We see a lot of questions to the effect When I try to connect to a system I get a message Connection refused Why is this ?
0 votes
2 answers
4k views

How can I further troubleshoot a "502 Bad Gateway" error?

I am running a set of services in a Docker environment. All services are behind the same nginx reverse proxy container that encrypts with letsencrypt and splits the incoming traffic based on ...
0 votes
1 answer
380 views

NGINX: Retry proxy_pass for a period of time on connection refused from upstream

I'm running NGINX 1.25.3 with the following configuration file that works well provided the upstream FCGI servers are accepting connections and responding OK: upstream backend_nomad_internal2 { ...
0 votes
2 answers
8k views

Apache 2.4 https server gives connection refuse error on mac osx

I'm a newbie on Apache and I was set up my https server on OS X EI follows this article. But I always get refuse connection error, please help. This is my httpd-ssl.conf file: <VirtualHost *:443&...
0 votes
0 answers
144 views

Connection refused for http requests intermittently on multiple certain networks but not others, OPNSense Firewall, maximum confusion

I have been using an OPNSense firewall at my business for about a year now and its worked great. We use it to host some websites, an email server, and wireguard for remote connections. All on a ...
2 votes
3 answers
21k views

Tomcat refusing connections on port 443

I have a Tomcat7 installation on CentOS 6.7 that should only allow connections on port 443. The /etc/tomcat/server.xml file is configured as such: <Connector port="443" protocol="org.apache....
0 votes
0 answers
251 views

EC2 port 80 refused to connect on public IP but can connect using private IP

Question simplified I can do curl {publicip}:4321 but not curl {publicip}:80 or curl {publicip}. But from the server's ssh, i can run curl {privateip}:80 and curl localhost:80 without any issues. And ...
0 votes
0 answers
173 views

Intermittent Inbound Traffic Blocked Windows Server 2012 R2

We manage a number of pcs running Windows Server 2012 R2 on various hardware (computers have differing network cards etc.). These machines are connected at different physical locations to a physical ...
0 votes
1 answer
847 views

SSH TCP Forwarding and VSCode

Thanks for taking a look at my question. I've been writing code from my desk to a remote server managed by WHM/cPanel (for which I have full root access) with VS Code Remote SSH functionality for a ...
0 votes
0 answers
4k views

cURL error 7: Failed to connect to localhost port 443: Connection refused

OS version: Ubuntu 20.04 x86_64 Plesk version: Plesk Obsidian 18.0.47.5 Hi, I am running XenForo Forum on my Plesk which running behind Cloudflare. I get following erro log, which is showing me that ...
1 vote
1 answer
2k views

Can you find out why connection refused happens if you are not the sender of request?

I have read a few posts and articles about why a connection would be refused. This usually talks about it in general, like this one What causes the 'Connection Refused' message?. But my ...
2 votes
1 answer
4k views

pgadmin won't connect to Postgresql via ssh on macOS

I am trying, with no success, to connect pgAdmin 4 to my Postgresql installation on Linode using ssh tunnel as specified in https://linode.com/docs/databases/postgresql/securely-manage-remote-...
0 votes
0 answers
147 views

Drop connection without sending packets

I would like to prevent default virtual host behaviour by dropping the connection, so that visitors who navigate to my server via IP or fqdn that isn't included in my virtual hosts get no indication ...
0 votes
1 answer
853 views

Connection Refused (GRE Tunnel - FiveM)

I am running a game server using Vultr. What I am trying to do is run the game server (backend server) through a GRE Tunnel. For this, I am using x4b.net for my GRE Tunnel. A few things to note: The ...
1 vote
0 answers
442 views

Can't see node STRAPI CMS application from outside - ERR_CONNECTION_REFUSED

I tried to run STRAPI CMS on my VPS. App runs via PM2 and internal curl is ok, I see response from app curl -v http://127.0.0.1:1337 But external curl is problem, nowadays I want to access just it ...
1 vote
0 answers
359 views

Connection Refused when Deploying Ruby on Rails application on Ubuntu Server

I'm pretty new to the DevOps world so I believe it is likely I'm missing something simple or not looking in the right places. I have deployed a Ruby on Rails application to an Ubuntu Server (on Linode)...
0 votes
2 answers
1k views

domain name getting connection refused where as dynamic domain name website loading fine

I have an Ubuntu 20.04 Focal server running with ufw firewall, nginx running with php8.0-fpm, and all needed packages with MySQL server. It is all accessible from outside internal network using ...
2 votes
0 answers
388 views

Workstations lose connection to network shares and need to be rebooted in order to reconnect to shared resources

I have a situation where workstations will lose the connection to network shares and printers during the night and have to be rebooted in order to reconnect, afterwards everything works correctly, ...
0 votes
1 answer
462 views

Common reasons for refused connection

When you try to access a HTTP server (e.g., www.example1.com) and the connection is refused, what could be some common reasons at the server end?
0 votes
1 answer
412 views

Why does Port 9721 intermittently refuse connections on Apache Tomcat 8.5 running on Windows Server 2012 R2?

Web Server: Apache Tomcat 8.5 Operating System: Windows Server 2012 R2 Port: 9721 We are running a Web server on our internal network and have about 8500 kiosks connecting through our VPN to a Java ...
0 votes
0 answers
4k views

nginx connect() failed (111: Connection refused) while connecting to upstream [Mastodon]

I am setting up a Mastodon server on Docker on Ubuntu. The server is up and running but when I try to access the site from a browser I get the error 502 Bad Gateway. I have checked that ufw is ...
2 votes
1 answer
1k views

Windows Server 2016 VPN / RAS Connection fails

Sorry for the screenshots being in german. Environments: Server: Windows Server 2016 Client: Windows 10 Pro My goal: Running a VPN Service on the Server Connecting to it from the client ...
0 votes
1 answer
1k views

Failover cluster SQL server 2016: 'the remote computer refused the connection'

BACKGROUND We have a new SQL server 2016 failover cluster (without Always On) (clu1) with 2 nodes (sql1-2) and 4 roles/instances (app1-4) Connections from de nodes to the cluster instances work fine ...
0 votes
0 answers
54 views

Why can some users connect to a DB and others can't?

I have a geospatial database that one of my users needs to connect to. Whenever he tries to connect from his workstation he gets an invalid connection/connection refused error. He is not able to ...
0 votes
2 answers
4k views

Can not access https from my ubuntu EC2 instance

I just created a new "SSH key with a pass phrase" for github private repo access from my AWS EC2 instance. Now I clone my repos fine. But the issue started that I can not access any https. It is ...
1 vote
0 answers
811 views

transfer file from windows machine to hortonworks sandbox HDFS

I want to upload one file from a local windows machine to HDFS. I am using Hortonworks Sandbox for Hadoop. I have tried the following command to transfer file, but it shows connection refused. scp -...
0 votes
1 answer
3k views

Connection refused when accessing container from local network through reverse proxy

I am running Proxmox VE on a root server. There are several virtual containers, on of them acts as a reverse proxy who does TLS termination. On the proxmox machine iptables handles port forwarding ...
0 votes
3 answers
53k views

can't connect to mikrotik via Winbox or Http

We have a Mikrotik RB 750GL and I can't connect to it via Winbox or Http. There is a PPTP connection (Running) between us (On Internet), That RB is PPTP Client. Winbox stops on retrieving ...
1 vote
1 answer
3k views

Can't access with public IP, but with localhost

I'm running InluxDB on my server in docker container. this command is ok, when executed from the same server: curl -G http://localhost:8086/query -u my_user --data-urlencode "q=SHOW DATABASES" ...
-1 votes
1 answer
101 views

Firewall refuse my connection to DB

We are working on software that require to connect to database on the server (Win2012)(LAN), after activating windows firewall, we couldn't connect to DB. I've set a rule for inbound and I Excluded ...
0 votes
1 answer
10k views

unix:////tmp/supervisor.sock refused connection

Blessings guys... first, sorry for my bad English, my first language is Spanish. So, I have a website for translations. We translate from English to Spanish (tv shows), the thing is that we have a ...
0 votes
1 answer
2k views

ssh server locally accessible, refusing remote connection

I've come across bunch of documentation on google/stack on this issue. but didn't find any solution I've a raspberry pi ssh server in my LAN that I want to ssh from internet (Outside the LAN). I ...
1 vote
2 answers
3k views

How to access a proxy enabled internet with ssh tunneling?

I have two pc (A & B, Both are running ubuntu 16.04) that are connected through Local Network. PC-A has Internet connection. I want to browse internet in PC-B using ssh tunneling. I used the ...
0 votes
1 answer
835 views

Amazon AWS does not allow me to connect to machine with public IP

I've created a machine (EC2) with public IP. It's running Linux. output of uname -a: 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux The (only) security ...
-1 votes
1 answer
874 views

How to backup database on localhost when cannot connect to MySQL?

I'm having 'HY000/2002): connection refused' issue with Lampp on Linux Mint on localhost. It just started to act this way with no known reason. I've spent hours to fix the problem, no solution yet. ...
0 votes
1 answer
766 views

MS SQL Server 2008 drops connections if number of connections is large

My SQL Server instance is configured for unlimited number of connecting users (DB right click - properties - connections). But when my script tries to execute about 500 simultaneous queries a big part ...
-2 votes
1 answer
1k views

RedHat Apache: Connection Refuse [duplicate]

Last weekend our ORG pushed a major set of patches to our Redhat servers. One of our applications went down and we've had huge issues trying to connect to it from within the network or outside. At ...
0 votes
0 answers
165 views

Leaseweb: after upgrading VM from Ubuntu 14.04 to 16.04, docker refuses connections to localhost

I'm totally at loss here. After upgrading to Ubuntu 16.04 from 14.04 on Leaseweb virtual server, docker no longer accepts connections to localhost. Using original CouchBase server image, running the ...
3 votes
3 answers
77k views

How to to avoid "Port 22: Connection refused" error on SSH port (22)?

I have a server where I just use openssh, openvpn and rabbitmq (which requires a lot of erlang dependencies). Every time I reboot my server I can't access to it anymore getting Port 22: ...
4 votes
1 answer
266 views

postfix force to send sequential

How can I force postfix to send out mails sequentially and not simultaneously? It should open only one SMTP connection at a time. It should only affect outgoing SMTP connections. Incoming connections ...
0 votes
2 answers
3k views

VPN - Intermittent connection issues

Most of the time, our VPN (L2TP over IPSec, SoftEther) works great. All the users (3 or less concurrent) can connect without problems. Lately, we have been noticing that we sometimes can't access ...
0 votes
1 answer
330 views

AWS EC2 Instance rejected public key

I just launched a AWS EC2 Image today, I got to authenticate successfully and I did the following changes: sudo yum update Install Oracle JDK 8_92 using wget Remove all other java options export ...
-1 votes
1 answer
3k views

port listening in netstat can't telnet

I'm trying to connect to port 8020 on a CentOS vm but I'm getting telnet: connect to address <public_ip>: Connection refused when I run telnet public_ip 8020. When I run netstat -anp | grep 8020 ...
-3 votes
1 answer
49 views

Websites from the same hosting doesn't open only from my router/proovider

Faced with a strange problem. I have a hosting with few websites. Starting from today I can't navigate any of them from any device, connected to home wifi. But I can ping each domain. Chrome fails ...
5 votes
2 answers
14k views

Cannot connect to my Cassandra

My Cassandra used to work with no problems. I was able to connect with no problems but now for some reason it doesn't work anymore. [default@unknown] connect localhost/9160; Exception connecting to ...
0 votes
1 answer
858 views

Connection refused on RHEL localhost with running server

I'm running a Java based system on CentOs and I sometimes see that clients of a service experience "Connection refused" errors for short periods. The interesting is that the server is, at the same ...
1 vote
3 answers
2k views

Connection refused on Ubuntu EC2 after EBS expansion

The problem After starting an Ubuntu 14.04 EC2 instance with expanded HD volumes, ssh-ing into it fails with Connection refused. The EBS expansion process One of my Ubuntu 14.04 EC2 machines was ...
1 vote
1 answer
3k views

OpenShift: MySQL PDO 'connection refused', works locally [duplicate]

I have an API i want to deploy to OpenShift, everything works locally, but when trying to use it online i get some problems. When trying to connect to the database, using PDO, i get this error: ...
4 votes
3 answers
572 views

how to avoid timeouts during server reboot

I am running into issues with a site that is using DNS round robin for failover. There are two webservers. When I turn off apache on one box, everything is fine. When browsers try to go to the ...
2 votes
1 answer
2k views

Cannot curl from the same server when it has PREROUTING ip forwarding

I have a Ubuntu web server that uses iptables PREROUTING to forward port 80 to 8000. So the web process listens on port 8000. Now I want to make a curl from the same server to a web application ...