command to find open ports code example
Example 1: how to check the ports in use in windows cmd
netstat -aon
Example 2: check what ports are open linux
## if you use linux
sudo ss -tulw
netstat -aon
## if you use linux
sudo ss -tulw