[GH-ISSUE #147] Can't connect two devices with same IP simultaneously #134

Closed
opened 2026-03-02 07:27:59 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (May 31, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/147

When my PC is connected to the VPN server, I can't connect my phone which is on same WiFi, but once I disconnect my PC it connects but then my PC can not get connected.
Am i doing something wrong?

Originally created by @ghost on GitHub (May 31, 2019). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/147 When my PC is connected to the VPN server, I can't connect my phone which is on same WiFi, but once I disconnect my PC it connects but then my PC can not get connected. Am i doing something wrong?
kerem closed this issue 2026-03-02 07:27:59 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Jun 1, 2019):

@alirezarzna Hello! The IPsec/L2TP mode has limitations that it does not support multiple devices from behind the same NAT. Use only IPsec/XAuth ("Cisco IPsec") mode for this use case. See README.

This issue can also occur when you connect two devices from the same IP using different modes, for example, one using IPsec/L2TP and the other using IPsec/XAuth ("Cisco IPsec") mode. After connecting the first device, the VPN server "remembers" the mode from that IP, and will refuse connections using a different mode. To resolve, use the same mode for all such devices.

<!-- gh-comment-id:497970142 --> @hwdsl2 commented on GitHub (Jun 1, 2019): @alirezarzna Hello! The IPsec/L2TP mode has limitations that it does not support multiple devices from behind the same NAT. Use only IPsec/XAuth ("Cisco IPsec") mode for this use case. See README. This issue can also occur when you connect two devices from the same IP using different modes, for example, one using IPsec/L2TP and the other using IPsec/XAuth ("Cisco IPsec") mode. After connecting the first device, the VPN server "remembers" the mode from that IP, and will refuse connections using a different mode. To resolve, use the same mode for all such devices.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#134
No description provided.