Page 1 of 1

Error Code 2 VPNCMD

Posted: Mon Mar 23, 2015 2:57 pm
by djram82
Hello !

I'm sorry, but I don't write English very well (I'm French :))

I installed SoftEther VPN Server 4.14 in a Ubuntu Server 12.04 LTS 32 Bits.

When I want to configure the soft with ./vpncmd ant the option 1, I've got this :

1. Management of VPN Server or VPN Bridge
2. Management of VPN Client
3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)

Select 1, 2 or 3: 1

Specify the host name or IP address of the computer that the destination VPN Server or VPN Bridge is operating on.
By specifying according to the format 'host name:port number', you can also specify the port number.
(When the port number is unspecified, 443 is used.)
If nothing is input and the Enter key is pressed, the connection will be made to the port number 8888 of localhost (this computer).
Hostname of IP Address of Destination:

If connecting to the server by Virtual Hub Admin Mode, please input the Virtual Hub name.
If connecting by server admin mode, please press Enter without inputting anything.
Specify Virtual Hub Name:
Error occurred. (Error code: 2)
Protocol error occurred. Error was returned from the destination server.

Can you help me please ?

Thank you :)

Re: Error Code 2 VPNCMD

Posted: Mon Mar 23, 2015 4:43 pm
by GIANT_CRAB
Hello, please verify your installation.

Run ./vpncmd and press 3. Then type in "check" .

Re: Error Code 2 VPNCMD

Posted: Tue Mar 24, 2015 10:55 am
by djram82
Hello,

Thank you for your answer.

The check is ok, everything pass.

"Checking 'Kernel System'...
Pass
Checking 'Memory Operation System'...
Pass
Checking 'ANSI / Unicode string processing system'...
Pass
Checking 'File system'...
Pass
Checking 'Thread processing system'...
Pass
Checking 'Network system'...
Pass

All checks passed. It is most likely that SoftEther VPN Server / Bridge can operate normally on this system.

The command completed successfully."

Re: Error Code 2 VPNCMD

Posted: Fri Mar 27, 2015 6:18 am
by djram82
Hello,

Nobody can help me ?

Thank you :)

Re: Error Code 2 VPNCMD

Posted: Wed Apr 01, 2015 6:11 am
by thisjun
I guess that another process occupies 443 port.
Try to connect with 5555.

Re: Error Code 2 VPNCMD

Posted: Wed Nov 09, 2016 5:21 pm
by riodda
I'm having the same issue on Gargoyle on Alix6f board, i've installed the server (4.21-9613, same on loder version), all the checks are ok with vpncmd, but when i try to connect to the server locally (first connection) i have the error

Error occurred. (Error code: 2)
Protocol error occurred. Error was returned from the destination server.
It's a new installation therfore i don't think there is anything on the ports (to be sure i also disabled openvpn that comes by default).
Same for Gargoyle 1.8.1 and 1.9.0, it's strange becouse on OpenWRT on the same board it works perfect.
Any help wellcome !

Re: Error Code 2 VPNCMD

Posted: Thu Oct 05, 2017 11:29 am
by 1463887848
I also have the same problem, I am in China, hope to get help

Re: Error Code 2 VPNCMD

Posted: Wed Jun 05, 2019 3:09 pm
by EventHorizon
thisjun wrote:
Wed Apr 01, 2015 6:11 am
I guess that another process occupies 443 port.
Try to connect with 5555.
Yes this was the solution ... after I killed existing process which was using port 443 this issue was solved - Thanks

Would be good if vpncmd gave a better error to clue people into this cause of error - take care

Re: Error Code 2 VPNCMD

Posted: Mon Sep 30, 2019 2:43 pm
by takeshi4126
I had the same issue and needed to specify 127.0.0.1:5555 for the first question of the vpncmd. It seems that ipv6 has precedence to translate 'localhost' in my environment. Hope this help someone having the same issue as me.