Page 1 of 1

SoftEther Tray Monitor / Notifications Of New Sessions

Posted: Sun Apr 27, 2025 8:48 pm
by jam_rs
Hello,

Just want the share this program / code with you all - I wanted a easy way to check for logged in sessions instead of opening the full GUI and have come up with this.

It's a Python code to load a small widget into the tray that when clicked on, shows sessions connected to a local Softether VPN Server, based on VPN Hub. (instead of going through the Softether VPN GUI). It will also show a notification pop up through the native windows notification system when a new user connects. (ensure ‘Focus Assist’ is allowing notifications!)

ScreenShot-SoftEtherTrayMonitorNotification.jpg

Full info here;
https://www.jamescooke.me.uk/it-interne ... in-python/

Re: SoftEther Tray Monitor / Notifications Of New Sessions

Posted: Mon Apr 28, 2025 1:49 am
by solo
A ChatGPT code, interesting. A non-GUI, non-AI equivalent would be...

Code: Select all

@echo off
:go
cls
vpncmd localhost /server /password:xxx /adminhub:VPN /cmd SessionList
ping -n 10 localhost > nul
goto go
Output:

Code: Select all

...
Item            |Value
----------------+-------------
Session Name    |SID-1-1
VLAN ID         |-
Location        |Local Session
User Name       |1
Source Host Name|localhost
TCP Connections |2 / 2
Transfer Bytes  |1,026
Transfer Packets|3