Postby kdh » 10 Mar 2010 04:26
depends on your os.
i'm running centos, but this should work for redhat..
you can do a
ss -a | grep portnumber.
example:
ss -a | grep 8081
however, if port number is in your services file, you'll need to grep for the service that port is defined for.
Example: port 8081 is defined as the tproxy service in my service file so I have to run this command:
ss -a | grep tproxy
I get my user count by doing a ss -a | grep -c tproxy .
As for limiting connections? No sure vlc supports that. just make sure your web host can handle the bandwidth you might be shoving down the line.
i do some nifty perl scripting to convert my IP address into Lat and Longs so I can see what country my listeners are tuned in from..
See the link to mywebite, click on the radio button, and you'll see it in action via google maps.