Question

Unable to open port 6000

Posted August 22, 2021 98 views
DigitalOcean Cloud Firewalls

i have turn on port 6000 in networking -> firewall - > inbound
Custom TCP 6000 [All IPv4] [All IPv6]

However when i tried to telnet the port to see if it works.
it returned connection refused .

i haven’t use ufw or any other firewall .

Would you please advice ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello, @billyhawaii1991

Is there any service listening on port 6000 at the moment? The port won’t be considered “open” until something is listening on it.

You can also use UFW if you want to use it to control the firewall rules

  • sudo ufw allow 6000

You can check the tutorial for Ubuntu 18.04 here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-20-04

Hope that this helps!
Regards,
Alex

by Brian Boucheron
This tutorial will show you how to set up a firewall with UFW on Ubuntu 20.04.