Answers for "opening ports on a server linux"

47

linux how to see ports in use

# Any of the following
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo lsof -i:22 # see a specific port such as 22
sudo nmap -sTU -O IP-address-Here
Posted by: Guest on March-31-2020
0

open ports for remote access on linux

sudo ufw allow PORT # sudo ufw allow 8080
Posted by: Guest on July-17-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language