Page 1 of 1

[for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Thu Nov 19, 2026 12:39 pm
by oscar
[for devs]vpnserver.exe uses bind() API on 0.0.0.0?

How to change or provide a dialog box to bind() to another NIC locally on windows os via windows api / dll?

Like vpnserver.exe -bind 10.239.1.1 ?

Re: [for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Fri Nov 20, 2026 4:25 am
by solo

Code: Select all

	declare ServerConfiguration
	{
		...
		string ListenIP ::
		...

Re: [for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Fri Nov 20, 2026 4:46 am
by oscar
solo wrote: ↑
Fri Nov 20, 2026 4:25 am

Code: Select all

	declare ServerConfiguration
	{
		...
		string ListenIP ::
		...
declare LocalBridgeList
{
bool EnableSoftEtherKernelModeDriver false <- take a note here
bool ShowAllInterfaces true
}
declare VirtualHUB
{
declare gcloud
{
...
declare Option
{
bool DisableIpRawModeSecureNAT true
bool DisableKernelModeSecureNAT true
bool DisableUserModeSecureNAT false
}
}
}
cd C:\Users\oscar\Desktop\ServerA , type nul > untrustedvpnserverausermode.bat
edit untrustedvpnserverausermode.bat with
cd C:\Users\oscar\Desktop\VPNServer
cd /d C:\Users\oscar\Desktop\VPNServer
sc delete SEVPNSERVER
runas /trustlevel:0x20000 "cmd.exe /k C:\Users\oscar\Desktop\VPNServer\VPNServer.exe /usermode_showtray"
cmd.exe /c netstat -a

Wait,
declare ServerConfiguration
{
...
string ListenIP ::
...
for SE5.0 ONLY,but in version 4.0 the string ListenIP deleted as soon as vpnserver.exe started?

Re: [for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Fri Nov 20, 2026 4:51 am
by solo
yes

Re: [for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Fri Nov 20, 2026 5:28 am
by oscar
solo wrote: ↑
Fri Nov 20, 2026 4:51 am
yes
https://github.com/SoftEtherVPN/SoftEtherVPN/pull/2331

it finally fully working on ALL androids thank you so much japanese devs,your soul never became cold in winter,as the word keep spreading directly via source code,people around the world reads and know what that means,thank you by the way again

Re: [for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Fri Nov 20, 2026 5:43 am
by oscar
solo wrote: ↑
Fri Nov 20, 2026 4:51 am
yes
declare ServerConfiguration
{
...
string ListenIP ::
...

note: the 2 colons mean ipv6
can i

string ListenIP 10.1.1.1 [ipv4] here?

Re: [for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Fri Nov 20, 2026 6:30 am
by solo
Yes but don't quote me anymore as I'm getting useless email notifications.

Your memory is so short... viewtopic.php?f=7&t=70058#p104668

Re: [for devs]vpnserver.exe uses bind() API on 0.0.0.0?

Posted: Fri Nov 20, 2026 1:07 pm
by oscar
https://github.com/SoftEtherVPN/SoftEth ... ssues/1309

Still,it ONLY changes
What ip address got traffic over vpnserver.exe
Not
vpnserver.exe will decide which 0.0.0.0/0 route for it's own outgoing traffic
https://github.com/SoftEtherVPN/SoftEth ... ssues/1559
QQ_2026-11-20_19-48-49.png
If it's a case matches B which is "decide which 0.0.0.0/0 route for it's own outgoing traffic vpnserver.exe" then it works

This is just a simple switch case in programming