I created a function in C++ to make the client connect to a server by IP :
if (GetGameInstance() && GetGameInstance()->GetFirstLocalPlayerController())
GetGameInstance()->GetFirstLocalPlayerController()->ClientTravel("192.168.22.31", ETravelType::TRAVEL_Absolute);
the issue here is if the server is not running, it keep trying to connect, here’s the log :
LogNet: Initial Connect Diagnostics: Sent '9' packets in last '10.004943' seconds, no packets received yet.
How do i cancel that ?