Client gets into restarting loop after it gets connected to server

My project is simple TPP based project
I have multiple remote addresses where I can deploy my application
so, I have multiple IP addresses
in order to test, I created a UI where you can input IP address and when you click on go it tries to connect to server.

I used two methods to connect to server at runtime

but failed at both methods.
  1. using “open { IP address }”
    using node " execute console command "
    using command " open 127.0.0.1 "
  2. using Client Travel method of Player Controller class
    void AVRHUD::TravelToMap(const FString& URL)
    {
        GetOwningPlayerController()->ClientTravel(URL, TRAVEL_Relative, false, FGuid());
    }
    

I think problem might be trying to connect to server manually at runtime.
any help would be appreciated

Thank You.

1 Like