Yo, UFW is the easiest for turn on ports ubunu, but don’t forget to enable it first if you haven’t:
```
sudo ufw enable
```
Then `sudo ufw allow 8080` like everyone said.
If you’re still having issues, maybe your service isn’t listening? Try `ss -tuln` to check.
Also, the Ubuntu forums are gold for this stuff—tons of threads on UFW.
---
Hey everyone, thanks for all the replies! You guys made it way clearer. I tried `sudo ufw allow 8080` and checked with `sudo ufw status`, and it’s showing up.
But now I’m curious—if I wanna open a range of ports, like 8000-9000, is it just `sudo ufw allow 8000:9000/tcp`? Or do I need to do something else?
Also, the `netstat` tip was super helpful—didn’t realize my service wasn’t even listening lol. Fixed that now.
Thanks again!
```
sudo ufw enable
```
Then `sudo ufw allow 8080` like everyone said.
If you’re still having issues, maybe your service isn’t listening? Try `ss -tuln` to check.
Also, the Ubuntu forums are gold for this stuff—tons of threads on UFW.
---
Hey everyone, thanks for all the replies! You guys made it way clearer. I tried `sudo ufw allow 8080` and checked with `sudo ufw status`, and it’s showing up.
But now I’m curious—if I wanna open a range of ports, like 8000-9000, is it just `sudo ufw allow 8000:9000/tcp`? Or do I need to do something else?
Also, the `netstat` tip was super helpful—didn’t realize my service wasn’t even listening lol. Fixed that now.
Thanks again!
