raspberry open port 50000 code example Example 1: raspberrypi open ports sudo ufw allow 9999 Example 2: open ports on RPI netstat -lptn