outline-apps
outline-apps copied to clipboard
Display number of active connections to server
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 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.
It would be so awesome if this could happen :p thanks for the reply!
@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 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 .
@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!
How do I know what my server port is? I set up my server by just running the install scripts
Hi @himat, you can find the server management port in the apiUrl
variable output by the install script.
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?
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).
Any progress on active clients counter? its been a long time
Another vote for this feature! thanks
I think this is a very important feature. I also vote for her.
We also need this feature. We use outline-ss-server without gui. Only outline-ss-server file
@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?