Hello ,
Thank you for posting in Q&A forum.
Based on your description, here are some possible solutions:
- First, make sure that the PSK configured on both computers is exactly the same. Any small spelling mistake or extra space can cause authentication to fail.
- Make sure that all the settings (such as authentication method, port, and protocol) are exactly the same in the connection security rules, except for the PSK. Pay special attention to the following:
Protocol Type: Make sure that the rules are configured for both machines to be of the same protocol type (e.g., ESP, AH, etc.).
Scope: Checks whether the rule applies to all network traffic and whether it contains the IP address range of the other party.
- Make sure that you have created an allow rule in your firewall for the UDP or TCP port you are using. In addition, sometimes enabling IP Sec can affect other firewall settings, ensuring that it has been properly configured to allow this type of traffic.
- Make sure that the network connection of both computers is normal. You can try accessing shared resources (such as shared folders) from one computer to another computer to see if you can get there. You can also check the physical connectivity of your network (such as a switch or router).
- Use a network monitoring tool to capture network packets when trying to communicate. This can help you diagnose if a packet was sent and replied to and why the connection was not established.
- Checking the system and application logs in the Event Viewer in Windows may reveal error messages related to connection security rules, which can help you understand the problem further.
- If none of the above methods resolve the issue, it is recommended that you temporarily disable the connection security rules and firewall, and then gradually re-enable each section to determine which setting is causing the problem.
- Sometimes a simple restart of your computer or router will fix a problem that arises on your network. Make sure to restart after the experiment.
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best regards,
Jill Zhou
If the Answer is helpful, please click "Accept Answer" and upvote it.