Question: how to check if port is blocked linux?
Answer: Open a terminal application i.e. shell prompt.
Run any one of the following command on Linux to see open ports: sudo lsof -i -P -n | grep LISTEN. sudo netstat -tulpn | grep LISTEN. ... 
For the latest version of Linux use the ss command. For example, ss -tulw.