Sometimes ports can be soft-blocked by the OS.\\

To check, run
<code>
sudo rfkill list all
</code>

where the hard and soft blocked ports will be listed.

To unblock all ports,\\

<code>
sudo rfkill unblock all
</code>