Page 1 of 1

Limiting number of clients

Posted: 09 Mar 2010 22:25
by djrobbie
When I use VLC to stream video to the internet directly, is there a way to limit number of people who can load that stream?
Is it possible to see who's connected and from what IP its connected ?

Re: Limiting number of clients

Posted: 10 Mar 2010 04:26
by kdh
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.