Hello!

I ran into the same issue today. The game was running smoothly yesterday, but when I attempted to connect to my friend's game this evening using the Direct Connect code, I encountered the following error message: "Connecting to NATpunch server failed. Connecting via online wasn't successful either."

I managed to resolve the problem by performing a verification and repair process for the game in GOG. To do this, follow these steps:

1. Select the game in your GOG library.
2. Click on the settings menu at the top (located next to the play button).
3. Choose "Manage installation."
4. Then, select "Verify / Repair."

This should help you get the game back to its working state.

If you purchased the game on Steam, you can try repairing it through the Steam platform.