-
Olee
- Posts: 4
- Joined: Sun Jul 08, 2018 6:38 pm
Always Error code : 1 when connect to the server
Hello,
Just installed Softether server on my windows machines (win 7, xp). However, every time I would like to connect to the server, even in the same subnet of my home, I got the message of :
Error (Error Code 1):
Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct.
I can ping the server, but not vpn connection get set.
It was very straight forward for the setup of both server and client, can some one help me out?
Thanks!
-
centeredki69
- Posts: 329
- Joined: Wed Sep 18, 2013 1:49 pm
Re: Always Error code : 1 when connect to the server
Post
by centeredki69 » Mon Jul 09, 2018 11:14 pm
On the server did you forward prots on your router to the Host running the softether server software?
NAT tranversal will sometimes work without the port forward but some times not.
What address did you put into the client «HOST name» field for access to the server? did you choose the correct port and if so could you see your virtual HUB in the drop down below ports.
-
Olee
- Posts: 4
- Joined: Sun Jul 08, 2018 6:38 pm
Re: Always Error code : 1 when connect to the server
Post
by Olee » Wed Jul 11, 2018 2:27 am
Thanks for the message.
I tried the setup in the same subnet and it didn’t work.
For host, I tried inside IP address. My server and client are in the same subnet.
The ports are 443, 993, 1194, 5555, I tried all of them and no luck.
I don’t see the HUB in the drop down list. I filled it up myself. I can ping the server address, but can’t connect to the host. Is that because of the windows firewall setup? I have tried the VPN server on Window 7, Windows xp, and Windows server 2003, none works.
Really confusing.
-
centeredki69
- Posts: 329
- Joined: Wed Sep 18, 2013 1:49 pm
Re: Always Error code : 1 when connect to the server
Post
by centeredki69 » Wed Jul 11, 2018 9:43 am
Hello,
You said the ports are 443,993,1194,5555.
In your router/Firewall. Did you try forwarding one of these ports to the Host Computer running the Softether software ?
-
Olee
- Posts: 4
- Joined: Sun Jul 08, 2018 6:38 pm
Re: Always Error code : 1 when connect to the server
Post
by Olee » Wed Jul 11, 2018 4:46 pm
Thanks
I tried this in the same subnet. Do I still need to forward the ports to the server form my router?
I only tried server in Windows machines so I may assume this is a firewall issue?
-
centeredki69
- Posts: 329
- Joined: Wed Sep 18, 2013 1:49 pm
Re: Always Error code : 1 when connect to the server
Post
by centeredki69 » Wed Jul 11, 2018 5:07 pm
The server software should have opened the ports on the Windows firewall. Disable the windows firewall temperately and see if it works.
On the CLIENT machine what did you enter for the Host address?
What port did you choose?
What did you enter for the Virtual HUB name?
-
Olee
- Posts: 4
- Joined: Sun Jul 08, 2018 6:38 pm
Re: Always Error code : 1 when connect to the server
Post
by Olee » Fri Jul 13, 2018 3:05 am
Thanks
I disabled the windows FW and no luck.
Then, as the final effort, I installed the server on my linux mint server and did the config by vpncmd. From Windows I use Management tool to remote config the SE server more.
Then, I CAN connect to the server using my windows client.
This might be a softether windows server issue.
Will keep on trying if time allows.
-
thisjun
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Always Error code : 1 when connect to the server
Post
by thisjun » Thu Aug 09, 2018 4:42 am
Could you try to install SoftEther VPN Client into the host of the VPN server and connect it to the VPN server?
Is there any security software on the client or server?
-
DCraft
- Posts: 3
- Joined: Tue May 28, 2019 6:14 pm
Re: Always Error code : 1 when connect to the server
Post
by DCraft » Tue May 28, 2019 6:19 pm
This one has me stumped, would appreciate some input. I cannot connect from one of my networks to the server without any issues. Goes right through my FW however I have tried to connect from another network to it actually 2 other networks to no avail.. It simply does not want to connect. I could understand if I was not able to connect at all from any networks however to be able from one and not from the other makes 0 sense.. Yes these are also remote sites..
Signed,
Puzzled
-
thisjun
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Always Error code : 1 when connect to the server
Post
by thisjun » Tue Jun 11, 2019 7:57 am
Could you explain more?
-
rolee
- Posts: 2
- Joined: Thu Mar 19, 2020 4:55 pm
Re: Always Error code : 1 when connect to the server
Post
by rolee » Thu Jun 18, 2020 8:41 am
DCraft wrote: ↑
Tue May 28, 2019 6:19 pm
This one has me stumped, would appreciate some input. I cannot connect from one of my networks to the server without any issues. Goes right through my FW however I have tried to connect from another network to it actually 2 other networks to no avail.. It simply does not want to connect. I could understand if I was not able to connect at all from any networks however to be able from one and not from the other makes 0 sense.. Yes these are also remote sites..Signed,
Puzzled
This is proof that it is just an internet connection issue from your other network. Because you already have proof that it can connect from one external network. The only reason you would not connect from another would be because of internet connection issues which are key to successful VPN connections not only SoftEther
-
brunosilva
- Posts: 2
- Joined: Tue Feb 02, 2021 3:54 pm
Re: Always Error code : 1 when connect to the server
Post
by brunosilva » Wed Mar 10, 2021 2:31 pm
I’m having this problem for two users.
- I have many users connecting successfully using SoftEgher VPN client, andfrom different coutries.
- But I have two users here in Portugal that cannot connect from their homes.
- I already checked and yes, they have Internet connection.
- I took the laptop from one if these users to my home and I could connect successfully.
- Obviously, the only explanation is that their home routers from Internet provider have some firewall that is blocking the connection.
- For one of them, I accessed his PC remotelly and disabled his home router firewall, but still not working.
So, does anyone have any suggestions?
-
eddiewu
- Posts: 279
- Joined: Wed Nov 25, 2020 9:10 am
Re: Always Error code : 1 when connect to the server
Post
by eddiewu » Wed Mar 10, 2021 4:04 pm
brunosilva wrote: ↑
Wed Mar 10, 2021 2:31 pm
I’m having this problem for two users.
- I have many users connecting successfully using SoftEgher VPN client, andfrom different coutries.
- But I have two users here in Portugal that cannot connect from their homes.
- I already checked and yes, they have Internet connection.
- I took the laptop from one if these users to my home and I could connect successfully.
- Obviously, the only explanation is that their home routers from Internet provider have some firewall that is blocking the connection.
- For one of them, I accessed his PC remotelly and disabled his home router firewall, but still not working.
So, does anyone have any suggestions?
Have you checked the DNS? Does it work if you specify the server address in IP?
-
brunosilva
- Posts: 2
- Joined: Tue Feb 02, 2021 3:54 pm
Re: Always Error code : 1 when connect to the server
Post
by brunosilva » Wed Mar 10, 2021 4:48 pm
eddiewu wrote: ↑
Wed Mar 10, 2021 4:04 pm
brunosilva wrote: ↑
Wed Mar 10, 2021 2:31 pm
I’m having this problem for two users.
- I have many users connecting successfully using SoftEgher VPN client, andfrom different coutries.
- But I have two users here in Portugal that cannot connect from their homes.
- I already checked and yes, they have Internet connection.
- I took the laptop from one if these users to my home and I could connect successfully.
- Obviously, the only explanation is that their home routers from Internet provider have some firewall that is blocking the connection.
- For one of them, I accessed his PC remotelly and disabled his home router firewall, but still not working.
So, does anyone have any suggestions?
Have you checked the DNS? Does it work if you specify the server address in IP?
You mean the «VPN Server Hostname»? If so, yes. Actually I have two SoftEther VPN Servers in different subnets, one with SoftEther DNS and other with our External IP address. Both of the servers works for most of our users, but none of them works for these two users.
-
eddiewu
- Posts: 279
- Joined: Wed Nov 25, 2020 9:10 am
Re: Always Error code : 1 when connect to the server
Post
by eddiewu » Thu Mar 11, 2021 5:17 am
You need to run wireshark.
-
solo
- Posts: 650
- Joined: Sun Feb 14, 2021 10:31 am
Re: Always Error code : 1 when connect to the server
Post
by solo » Fri Mar 12, 2021 8:07 am
brunosilva wrote: ↑
Wed Mar 10, 2021 4:48 pm
…and other with our External IP address. Both of the servers works for most of our users, but none of them works for these two users.
The one with ext IP is directly there or behind a router? If the latter, then are you forwarding port 443 or something else?
Please ask the users to connect to this SoftEther test hub:
Code: Select all
VPN Server hostname: vpn.packetix.net
VPN Server port number: 443
Virtual Hub name: DIAGNOSTIC
user name: test
password: test
This test hub is not interconnected anywhere and only virtual DHCP is functional.
I went back to Softether and found that VPN Manager Listener List, that port 443 was had the status of «error», while the other three were listening. I then deleted port 443 from the list, replacing it with 501. After that I changed my port forwarding of 443 to 501 on my router, then changed the port setting on my Softether client to 501 as well.
After doing that I am now able to get a connection to the VPN server from my laptop
However I need clients machines connected to the VPN, to have access the internet via the VPN, with their IP appearing to be that of the VPN Server, for which I need to enable the Virtual DHCP Server functionality. However when enabling SecureNAT with the VIrtual DHCP enabled to do this, I get a message «Are you sure you want to enable the SecureNAT…» and of particular interest further down the message is the part which says «Also please take care if there is already a DHCP server in a location that can be reached from a Virtual Hub Layer 2 segment… otherwise there will be a DHCP conflict».
My goal in setting up a VPN is not to run it on my home PC (this is just a test), but to set one up at the office of the company I work for. However the office is in Norway and I’m in the UK and due to the Covid situation it’s not possible for me to travel there to do this. I have access to the PC I will set the VPN up on at the office, via remote desktop, with access to that via the current (very slow) VPN which is running on an Asus router.
That router is acting also acts as the DHCP server for the small number of devices in the office, as well as providing the VPN that I and a few others use on a daily basis.
So I have a question… if I set up the new Softether VPN, running the Virtual DHCP server, is that that likely to conflict with the DHCP server currently running on the router?
I don’t know if that’s a straightforward question to answer (I’m guessing not), but some opinion on the likelyhood of a conflict would be useful.
If all else fails and after setting up the new VPN there is a DHCP conflict, I plan to have someone in the office (so with physical access to the machine the new VPN would be running on) turn off the Softether VPN.
If there is a DHCP conflict, is there a way to avoid that, e.g. to somehow limit the allocations of IP addresses by the Softether Virtual DHCP to only the remote machines that have connected to it and not include those in the office.
I know that’s all quite a big dump of information and going well beyond my initial question. Let me know if I should start a new thread.
Сообщение от insect_87
покажите с обоих с поднятым VPN
Вин 7
ipconfig -all
Кликните здесь для просмотра всего текста
Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.
C:Windowssystem32>ipconfig -all
Настройка протокола IP для Windows
Имя компьютера . . . . . . . . . : SysAdmin
Основной DNS-суффикс . . . . . . :
Тип узла. . . . . . . . . . . . . : Гибридный
IP-маршрутизация включена . . . . : Нет
WINS-прокси включен . . . . . . . : Нет
Unknown adapter VPN_Client_1 — VPN Client:
DNS-суффикс подключения . . . . . :
Описание. . . . . . . . . . . . . : VPN Client Adapter — VPN_Client_1
Физический адрес. . . . . . . . . : 5E-FC-9D-94-6A-BB
DHCP включен. . . . . . . . . . . : Нет
Автонастройка включена. . . . . . : Да
Локальный IPv6-адрес канала . . . : fe80::f554:a539:b63:bac2%18(Основной)
IPv4-адрес. . . . . . . . . . . . : 192.168.2.112(Основной)
Маска подсети . . . . . . . . . . : 255.255.255.0
Основной шлюз. . . . . . . . . :
IAID DHCPv6 . . . . . . . . . . . : 576650397
DUID клиента DHCPv6 . . . . . . . : 00-01-00-01-26-3B-35-08-00-24-1D-9D-CC-F5
DNS-серверы. . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBios через TCP/IP. . . . . . . . : Включен
Ethernet adapter Подключение по локальной сети 4:
DNS-суффикс подключения . . . . . :
Описание. . . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet
NIC
Физический адрес. . . . . . . . . : 00-E0-4C-3A-76-9C
DHCP включен. . . . . . . . . . . : Да
Автонастройка включена. . . . . . : Да
Локальный IPv6-адрес канала . . . : fe80::41ba:cd87:9afc:835b%17(Основной)
IPv4-адрес. . . . . . . . . . . . : 192.168.0.144(Основной)
Маска подсети . . . . . . . . . . : 255.255.255.0
Аренда получена. . . . . . . . . . : 2 лютого 2022 р. 8:08:59
Срок аренды истекает. . . . . . . . . . : 2 лютого 2022 р. 13:48:38
Основной шлюз. . . . . . . . . : 192.168.0.1
DHCP-сервер. . . . . . . . . . . : 192.168.0.1
IAID DHCPv6 . . . . . . . . . . . : 469819468
DUID клиента DHCPv6 . . . . . . . : 00-01-00-01-26-3B-35-08-00-24-1D-9D-CC-F5
DNS-серверы. . . . . . . . . . . : 192.168.0.1
NetBios через TCP/IP. . . . . . . . : Включен
Туннельный адаптер isatap.{100A2767-1243-4E8A-B552-BE28F05D567F}:
Состояние среды. . . . . . . . : Среда передачи недоступна.
DNS-суффикс подключения . . . . . :
Описание. . . . . . . . . . . . . : Адаптер Microsoft ISATAP
Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP включен. . . . . . . . . . . : Нет
Автонастройка включена. . . . . . : Да
Туннельный адаптер Teredo Tunneling Pseudo-Interface:
Состояние среды. . . . . . . . : Среда передачи недоступна.
DNS-суффикс подключения . . . . . :
Описание. . . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP включен. . . . . . . . . . . : Нет
Автонастройка включена. . . . . . : Да
Туннельный адаптер isatap.{27EFDFD7-E365-4538-A6AC-D748177F97B6}:
Состояние среды. . . . . . . . : Среда передачи недоступна.
DNS-суффикс подключения . . . . . :
Описание. . . . . . . . . . . . . : Адаптер Microsoft ISATAP #2
Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP включен. . . . . . . . . . . : Нет
Автонастройка включена. . . . . . : Да
C:Windowssystem32>
route print
Кликните здесь для просмотра всего текста
C:Windowssystem32>route print
================================================== =========================
Список интерфейсов
18…5e fc 9d 94 6a bb ……VPN Client Adapter — VPN_Client_1
17…00 e0 4c 3a 76 9c ……Realtek RTL8139/810x Family Fast Ethernet NIC
1………………………Software Loopback Interface 1
12…00 00 00 00 00 00 00 e0 Адаптер Microsoft ISATAP
16…00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
19…00 00 00 00 00 00 00 e0 Адаптер Microsoft ISATAP #2
================================================== =========================
IPv4 таблица маршрута
================================================== =========================
Активные маршруты:
Сетевой адрес Маска сети Адрес шлюза Интерфейс Метрика
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.144 20
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
130.158.6.114 255.255.255.255 192.168.0.1 192.168.0.144 20
185.250.22.114 255.255.255.255 192.168.0.1 192.168.0.144 20
192.168.0.0 255.255.255.0 On-link 192.168.0.144 276
192.168.0.1 255.255.255.255 On-link 192.168.0.144 276
192.168.0.144 255.255.255.255 On-link 192.168.0.144 276
192.168.0.255 255.255.255.255 On-link 192.168.0.144 276
192.168.2.0 255.255.255.0 On-link 192.168.2.112 257
192.168.2.112 255.255.255.255 On-link 192.168.2.112 257
192.168.2.255 255.255.255.255 On-link 192.168.2.112 257
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.0.144 276
224.0.0.0 240.0.0.0 On-link 192.168.2.112 257
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.0.144 276
255.255.255.255 255.255.255.255 On-link 192.168.2.112 257
================================================== =========================
Постоянные маршруты:
Сетевой адрес Маска Адрес шлюза Метрика
0.0.0.0 0.0.0.0 26.0.0.1 9256
0.0.0.0 0.0.0.0 26.0.0.1 9256
================================================== =========================
IPv6 таблица маршрута
================================================== =========================
Активные маршруты:
Метрика Сетевой адрес Шлюз
1 306 ::1/128 On-link
17 276 fe80::/64 On-link
18 276 fe80::/64 On-link
17 276 fe80::41ba:cd87:9afc:835b/128
On-link
18 276 fe80::f554:a539:b63:bac2/128
On-link
1 306 ff00::/8 On-link
17 276 ff00::/8 On-link
18 276 ff00::/8 On-link
================================================== =========================
Постоянные маршруты:
Отсутствует
C:Windowssystem32>
Вин 10
ipconfig -all
Кликните здесь для просмотра всего текста
Microsoft Windows [Version 10.0.19041.1415]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
C:WINDOWSsystem32>ipconfig -all
Настройка протокола IP для Windows
Имя компьютера . . . . . . . . . : Economist
Основной DNS-суффикс . . . . . . :
Тип узла. . . . . . . . . . . . . : Гибридный
IP-маршрутизация включена . . . . : Нет
WINS-прокси включен . . . . . . . : Нет
Неизвестный адаптер VPN — VPN Client:
DNS-суффикс подключения . . . . . :
Описание. . . . . . . . . . . . . : VPN Client Adapter — VPN
Физический адрес. . . . . . . . . : 5E-BD-B1-E8-B8-6B
DHCP включен. . . . . . . . . . . : Нет
Автонастройка включена. . . . . . : Да
Локальный IPv6-адрес канала . . . : fe80::d64:dcd7:9738:4f15%29(Основной)
IPv4-адрес. . . . . . . . . . . . : 192.168.2.124(Основной)
Маска подсети . . . . . . . . . . : 255.255.255.0
Основной шлюз. . . . . . . . . :
IAID DHCPv6 . . . . . . . . . . . : 492748209
DUID клиента DHCPv6 . . . . . . . : 00-01-00-01-23-0F-C5-41-D0-50-99-A6-C6-E9
DNS-серверы. . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBios через TCP/IP. . . . . . . . : Включен
Адаптер Ethernet Ethernet 2:
DNS-суффикс подключения . . . . . :
Описание. . . . . . . . . . . . . : Realtek PCIe GBE Family Controller #2
Физический адрес. . . . . . . . . : D0-50-99-A6-C6-E9
DHCP включен. . . . . . . . . . . : Нет
Автонастройка включена. . . . . . : Да
Локальный IPv6-адрес канала . . . : fe80::4456:bd4a:1a28:8e2d%3(Основной)
IPv4-адрес. . . . . . . . . . . . : 10.0.0.29(Основной)
Маска подсети . . . . . . . . . . : 255.0.0.0
Основной шлюз. . . . . . . . . : 10.0.0.1
DNS-серверы. . . . . . . . . . . : 10.0.0.1
NetBios через TCP/IP. . . . . . . . : Включен
C:WINDOWSsystem32>
route print
Кликните здесь для просмотра всего текста
C:WINDOWSsystem32>route print
================================================== =========================
Список интерфейсов
29…5e bd b1 e8 b8 6b ……VPN Client Adapter — VPN
3…d0 50 99 a6 c6 e9 ……Realtek PCIe GBE Family Controller #2
1………………………Software Loopback Interface 1
================================================== =========================
IPv4 таблица маршрута
================================================== =========================
Активные маршруты:
Сетевой адрес Маска сети Адрес шлюза Интерфейс Метрика
0.0.0.0 0.0.0.0 10.0.0.1 10.0.0.29 291
10.0.0.0 255.0.0.0 On-link 10.0.0.29 291
10.0.0.29 255.255.255.255 On-link 10.0.0.29 291
10.255.255.255 255.255.255.255 On-link 10.0.0.29 291
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
130.158.6.108 255.255.255.255 10.0.0.1 10.0.0.29 291
185.250.22.114 255.255.255.255 10.0.0.1 10.0.0.29 291
192.168.2.0 255.255.255.0 On-link 192.168.2.124 257
192.168.2.124 255.255.255.255 On-link 192.168.2.124 257
192.168.2.255 255.255.255.255 On-link 192.168.2.124 257
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.2.124 257
224.0.0.0 240.0.0.0 On-link 10.0.0.29 291
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.2.124 257
255.255.255.255 255.255.255.255 On-link 10.0.0.29 291
================================================== =========================
Постоянные маршруты:
Сетевой адрес Маска Адрес шлюза Метрика
0.0.0.0 0.0.0.0 10.0.0.1 По умолчанию
0.0.0.0 0.0.0.0 10.12.0.1 По умолчанию
================================================== =========================
IPv6 таблица маршрута
================================================== =========================
Активные маршруты:
Метрика Сетевой адрес Шлюз
1 331 ::1/128 On-link
29 291 fe80::/64 On-link
3 291 fe80::/64 On-link
29 291 fe80::d64:dcd7:9738:4f15/128
On-link
3 291 fe80::4456:bd4a:1a28:8e2d/128
On-link
1 331 ff00::/8 On-link
29 291 ff00::/8 On-link
3 291 ff00::/8 On-link
================================================== =========================
Постоянные маршруты:
Отсутствует
C:WINDOWSsystem32>