How can I unbind a UDP port that has no entry in lsof?
- by Chocohound
On my Mac, I have a UDP port that is "already in use", but doesn't have an associated process:
sudo netstat -na | grep "udp.*\.500\>"
shows
udp4 0 0 192.168.50.181.500 *.*
udp4 0 0 192.168.29.166.500 *.*
sudo lsof doesn't show a process on port 500 (ie sudo lsof -i:500 -P reports nothing).
Note I'm using 'sudo' on both commands so it should show all processes. (rebooting works, but looking for something less disruptive)
How can I unbind port 500 so I can use it again?