How do I open ports aside from the SSH port?

I've been trying to open other ports so I can host my server. I've tried using firewall commands in the command line to the specific port I want to open. Nothing seems to work. It keeps saying the port isn't open with the IP address. All that is open is the SSH port (22), not anything else. Am I missing some settings? Thanks.

2 Replies

Are you using UFW?

What commands are you issuing?

I have been using UFW. I'm using commands that allow a certain port to be open. But it keeps saying it's closed.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct