I'm just wondering if there is anyway to test the current listening port for deluge from the command line?
My VPN's assigned port sometimes gets blocked and needs to be changed and I'm trying to make a script to do it, but can't find a way to test the open port from command line. And I'm trying to avoid changing it when unnecessary.
Google search brings up lsof, nmap, telnet, nc, etc etc. But all these do is show the ports with listening programs, since the script and deluge are on the same machine, they will still pass the port even if its blocked.
I can't find a way to test if the port is still remotely accessible past all of the port scanner and netstat guides on google.
Any help would be appreciated, Thx Jon.