raspberry pi unblock port code example Example 1: raspberrypi open port sudo ufw allow portx Example 2: open ports on RPI netstat -lptn