Limiting number of clients

About encoding, codec settings, muxers and filter usage
djrobbie
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Mar 2010 21:40

Limiting number of clients

Postby djrobbie » 09 Mar 2010 22:25

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 ?

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: Limiting number of clients

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 16 guests