outline-apps icon indicating copy to clipboard operation
outline-apps copied to clipboard

Display number of active connections to server

Open ggahmed opened this issue 6 years ago • 14 comments

I'm not sure if there's a way to see how many people are connected on my outline server. Even if there's a bash command i think it would be really helpful for me to check.

ggahmed avatar Aug 01 '18 17:08 ggahmed

@ggahmed Thanks for trying Outline! I'm afraid there isn't an easy way currently to see this. I agree it would be a neat feature to have.

trevj avatar Aug 01 '18 18:08 trevj

It would be so awesome if this could happen :p thanks for the reply!

ggahmed avatar Aug 01 '18 18:08 ggahmed

@trevj also if there is any hack or way around to get this working - a simple hint in the right direction would help me get started and work up a sort of a bootstrap solution lemme know

ggahmed avatar Aug 01 '18 18:08 ggahmed

You can try netstat -t command on your server's terminal. It will show all TCP connection.

Maybe you want pipe it's output to grep :$YOUR_SERVER_PORT. So the full command is netstat -tn | grep :$YOUR_SERVER_PORT

ggahmed [email protected] 于 2018年8月2日周四 02:43写道:

@trevj https://github.com/trevj also if there is any hack or way around to get this working - a simple hint in the right direction would help me get started and work up a sort of a bootstrap solution lemme know

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Jigsaw-Code/outline-apps/issues/1910, or mute the thread https://github.com/notifications/unsubscribe-auth/AQVHEsgMAn1yVmwwM9Q9Y7Vjya12nTT0ks5uMfbcgaJpZM4Vq4ys .

ghost avatar Aug 02 '18 00:08 ghost

@studentmain Beware that one Shadowsocks client typically opens many connections open to the server. Because of this, you probably want to count unique IPs. I think this will get @ggahmed a little closer to what he wants:

netstat -tn|grep 48611|awk '{print $5}'|awk -F: '{print $2}'|sort -u

Thanks!

trevj avatar Aug 02 '18 16:08 trevj

How do I know what my server port is? I set up my server by just running the install scripts

himat avatar Aug 01 '19 17:08 himat

Hi @himat, you can find the server management port in the apiUrl variable output by the install script.

alalamav avatar Aug 01 '19 17:08 alalamav

Where can I find that script output if I ran the script previously and don't have the console output anymore? Is there a log file with that info somewhere?

himat avatar Aug 01 '19 18:08 himat

You can find it in opt/outline/access.txt (unless it's a legacy server, in which case it should be in /root/shadowbox/access.txt).

alalamav avatar Aug 01 '19 19:08 alalamav

Any progress on active clients counter? its been a long time

ring0jke avatar Apr 05 '23 08:04 ring0jke

Another vote for this feature! thanks

mfat avatar Jun 04 '23 09:06 mfat

I think this is a very important feature. I also vote for her.

a-poluyanov avatar Jun 19 '23 15:06 a-poluyanov

We also need this feature. We use outline-ss-server without gui. Only outline-ss-server file

dotmitsu avatar Jan 17 '24 19:01 dotmitsu

@studentmain Beware that one Shadowsocks client typically opens many connections open to the server. Because of this, you probably want to count unique IPs. I think this will get @ggahmed a little closer to what he wants:

netstat -tn|grep 48611|awk '{print $5}'|awk -F: '{print $2}'|sort -u

Thanks!

Hi, please let me know what's {print $5} in this command?

shishehgar avatar Feb 24 '24 07:02 shishehgar