Page 1 of 1

VPN Azure setup

Posted: Tue Mar 17, 2026 11:47 am
by Ozarsif
hi everyone,
i am struggling with VPN Azure setting. for this test, i created VM in Azure cloud, and installed VPN server on it. i can connect to this server directly (with DDNS name, which points to server IP address), if i open related ports, but i cannot connect to it via VPN Azure option. if i use VPN Gate Public VPN Relay Servers, i can connect to the Japan servers only via UDP, i don't know why (probably my government blocks something). can this be the reason, and if yes, how to setup my own VPN server to work in UDP mode?

Re: VPN Azure setup

Posted: Tue Mar 17, 2026 1:45 pm
by solo
Yes.

On your SoftEther Developer Edition server open a UDP port and then on a SE client set "PortUDP" to the same port http://www.vpnusers.com/viewtopic.php?t=69953#p104376

Re: VPN Azure setup

Posted: Wed Mar 18, 2026 6:57 am
by Ozarsif
Hello Solo,

thank you for your answer. ok, forget about vpnazure for a while.
how to setup SE on UDP?
i've set MS-SSTP setting to UDP 9400
i can see UDP endpoint present on port 9400
> Get-NetUDPEndpoint
LocalAddress LocalPort
------------ ---------
0.0.0.0 9400
i can connect to my server via TCP (port 5555 for example), so i exported that configuration, and updated it to UDP usage:

Code: Select all

declare root
{
	bool CheckServerCert false
	uint64 CreateDateTime 0
	uint64 LastConnectDateTime 0
	bool StartupAccount false
	uint64 UpdateDateTime 0

	declare ClientAuth
	{
		uint AuthType 1
		byte HashedPassword 
		string Username 
	}
	declare ClientOption
	{
		string AccountName Personal$20VPN$20UDP
		uint AdditionalConnectionInterval 1
		uint ConnectionDisconnectSpan 0
		string DeviceName VPN
		bool DisableQoS false
		bool HalfConnection false
		bool HideNicInfoWindow false
		bool HideStatusWindow false
		string Hostname 20.150.144.16
		string HubName 
		uint MaxConnection 1
		bool NoRoutingTracking false
		bool NoTls1 false
		bool NoUdpAcceleration false
		uint NumRetry 4294967295
		uint Port 443
		uint PortUDP 9400
		string ProxyName $
		byte ProxyPassword $
		uint ProxyPort 0
		uint ProxyType 0
		string ProxyUsername $
		bool RequireBridgeRoutingMode false
		bool RequireMonitorMode false
		uint RetryInterval 15
		bool UseCompress false
		bool UseEncrypt true
	}
}
when i am trying to connect, i can see UDP traffic on port 9400 with Wireshark
3336 1245.570972600 147.30.19.151 10.0.0.4 UDP 65 50946 → 9400 Len=23
but connection fails.
2026-03-18 11:52:40.958 VPN Connection Setting "Personal VPN UDP": The connection has been either disconnected or it failed. Cause: Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct. (code 1)

Re: VPN Azure setup

Posted: Wed Mar 18, 2026 9:07 am
by solo
It's a developer feature - it may be experimental, incomplete or buggy.
Submit your report here https://github.com/SoftEtherVPN/SoftEtherVPN/issues

Re: VPN Azure setup

Posted: Wed Mar 18, 2026 11:52 am
by boxpad1004
Many error reasons. not open port, encryption error etc. best solution is asking to chatgpt