SoftEther Tray Monitor / Notifications Of New Sessions

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
jam_rs
Posts: 1
Joined: Sun Apr 27, 2025 8:41 pm

SoftEther Tray Monitor / Notifications Of New Sessions

Post by jam_rs » Sun Apr 27, 2025 8:48 pm

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/
You do not have the required permissions to view the files attached to this post.

solo
Posts: 1654
Joined: Sun Feb 14, 2021 10:31 am

Re: SoftEther Tray Monitor / Notifications Of New Sessions

Post by solo » Mon Apr 28, 2025 1:49 am

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

Post Reply