I’ve successfully setup wireguard vpn server with a kind of dynamic port assignment so as to increase the availability. This is particularly suitable for environment where a continuous monitoring on the VPN usage by regulation. The setup is based on a regular wireguard setup on ubuntu, develop a shell script to check and assign port dynamically. Though the idea is innovated, the technique is not really advanced.