@LastAlex @RoachLJ @Willie_Squad @izaslogin @eMKay
I solved this type of problem in Call of Duty (from WW II & upwards) in this way, i.e. I wrote down the DNS address from my modem/router and entered it into the connection configuration in Windows.
I described how to do it in Windows in the attachment called configure.jpg
After do this, restart PC.
Games that do not have a server search engine like to have problems with downloading the current network IP from the DNS server on Windows 10 and 11 (by the time they find the DNS and download the IP, it is already too late, which causes the game to see it as a lack of connection)
I hope it helps you too.
If this does not help, it is also worth checking whether your firewall is not blocking outgoing connections and whether you should consider unblocking the NAT ports
GL