Use Local Loopback address (127.0.0.1) as IP Address if you only have 1 computer

Suggestion:
This will allow you to run all instances of the packaged game on 1 computer.

void AMultiplayerCGameMode::JoinLANGame()
{
	APlayerController *PC = GetGameInstance()->GetFirstLocalPlayerController();
	if (PC)
	{
		PC->ClientTravel("127.0.0.1", TRAVEL_Absolute);
	}
}
2 Likes

Privacy & Terms