MeshCentral: Getting "443... failed: Connection refused. " attempting to use wget to download the agent.

Hello,

I am using a Docker instance and have an issue connecting to the MeshCentral server from the client. I stared troubleshooting by opening a ticket HERE, since I deployed this as a docker container, but sadly the creator of the Docker wrapper was unable to help, tho I am grateful for all his efforts.

Does anyone have any idea why my client cannot reach the server with a manually installed Agent or am unable to download the agent from the server via wget, and I get this?

Admin@Mac local $ sudo wget -O meshagent "https://mesh.server.com/meshagents?id=LrbUtkrDQTSUL%40OVmWkLPPekWNnOyDhN5tT4WdjrvJWqh3rrBTs&installflags=0&meshinstall=10005"
Password:
--2022-05-20 10:19:31--  https://mesh.server.com/meshagents?id=LrbUtkrDQTSUL%40OVmWkLPPekWNnOyDhN5tT4WdjrvJWqh3rrBTs&installflags=0&meshinstall=10005
Resolving mesh.server.com (mesh.server.com)... 192.168.2.50
Connecting to mesh.server.com (mesh.server.com)|192.168.2.50|:443... failed: Connection refused.

Again, all pertinent info about the server/client, LAN, configuration, logs, etc… is all HERE

Thanks in advance.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 27 (3 by maintainers)

Most upvoted comments

@SemoTech It looks like that is what you specified in the Docker-Compose config from your other post. Okay so try this, in your linux instance where you are trying to install the agent, goto your hosts file. It’s usually in /etc/hosts but can vary based on the linux distro.

Add the IP of your MeshCentral Server a space then the DNS name of your MeshCentral Server at the end of the file. It should look something like this: 192.168.1.1 mesh.server.com

Just be sure to change the IP to the correct IP of your MeshCentral Server. If this works then you are having a DNS issue and I can help you further.

Once you do this do a ping command to the Domain Name. It will look like this: ping mesh.server.com -c 10 This will try to ping your MeshCentral Server 10 times with the IP address you specified. You should see the IP address show up in your terminal and it should be exactly like the one you specified.

The output should look similar to this: 64 bytes from mesh.server.com (192.168.1.1): icmp_seq=1 ttl=58 time=38.2 ms

I would check your local server ports and see which ones are open. If you have net-tools installed you should be able to list ports being used with what apps with netstat -tulpn. Then check your firewall to be sure port 443 is allowed using iptables --list.

Also, are you able to access the web interface from another pc on your network. This also looks like it is having a firewall issue. When you see connection refused that is an active response from the server saying the port is closed.