The problem of connecting via hamachi in UE5

I created a game on UE4 and decided to switch to UE5, in the previous version of the engine it was possible to connect via hamachi, but in the new version of the engine it fails, blueprints are identical, tried to connect via another hamachi analogue, in the old version it works, but in the new one it fails to connect. At the same time, it shows the found server in the widget, but when you click connect, after 20 seconds the client will spawn in the default world.