[Networking] Client failed to loadmap and then disconnects

Hello, I’m having difficulties getting my client to connect to the server.

My game has 1 host computer and other plays join. I had difficulties with the NAT before, but I wrote a NAT punchthrough system and now I’m getting very good signs that it’s very close to working. The host computer recieves the IP of a client, and then sends a message to the client to map the router for the punch through. ok that seems to work :slight_smile:

My current problem is that my host sees the client trying to connect. but it something is causing it to fail. Either the server is ending up denying the client, or the client is failing to finalize the connection… or maybe I’m just missing something.

I’ve grabbed my server logs. i’ve xxxxx out personal info such as IP.

UGameSparksModuleLog: WebSocket callback: {"@class":".ScriptMessage",“data”:{ “event” : “nat_punch” , “info” : “[CLIENT_IP]”},“messageId”:“58a678190a45b30567720cc7”,“notification”:false,“playerId”:“xxxxxxxxx”,“summary”:“ScriptMessage”}

LogBlueprintUserMessages: [TopDownGameMode_C_0] Server: WebSocket callback: {"@class":".ScriptMessage",“data”:{ “event” : “nat_punch” , “info” : “[CLIENT_IP]”},“messageId”:“58a678190a45b30567720cc7”,“notification”:false,“playerId”:“xxxxxxxxx”,“summary”:“ScriptMessage”}

LogBlueprintUserMessages: [TopDownGameMode_C_0] Server: GameSparksScriptData_311

LogBlueprintUserMessages: [TopDownGameMode_C_0] Server: [CLIENT_IP]:7777

LogHandshake: SendConnectChallenge. Timestamp: 8.914593, Cookie: 167092154194135182191035212094031028114012003071197157149004

LogNet: Server accepting post-challenge connection from: [CLIENT_IP]:49692

PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent)

LogNet: NotifyAcceptedConnection: Name: TrainingMap, TimeStamp: 02/16/17 20:12:13, [UNetConnection] RemoteAddr: [CLIENT_IP]:49692, Name: IpConnection_14, Driver: GameNetDriver IpNetDriver_21, IsServer: YES, PC: NULL, Owner: NULL

LogNet: AddClientConnection: Added client connection: [UNetConnection] RemoteAddr: [CLIENT_IP]:49692, Name: IpConnection_14, Driver: GameNetDriver IpNetDriver_21, IsServer: YES, PC: NULL, Owner: NULL

LogNet: NotifyAcceptingChannel Control 0 server World /Game/TopDownBP/Maps/UEDPIE_0_TrainingMap.TrainingMap: Accepted

LogNet: Remote platform little endian=1

LogNet: This platform little endian=1

LogNet: Login request: /Game/TopDownBP/Maps/MainMenu?Name=localhost-00020E9A26021310000901093E7BC993 userId: Invalid

LogNet: Client netspeed is 10000

LogNet: UChannel::ReceivedSequencedBunch: Bunch.bClose == true. ChIndex == 0. Calling ConditionalCleanUp.

LogNet: UChannel::CleanUp: ChIndex == 0. Closing connection. [UChannel] ChIndex: 0, Closing: 0
[UNetConnection] RemoteAddr: [CLIENT_IP]:49692, Name: IpConnection_14, Driver: GameNetDriver IpNetDriver_21, IsServer: YES, PC: NULL, Owner: NULL

LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: [CLIENT_IP], Name: IpConnection_14, Driver: GameNetDriver IpNetDriver_21, IsServer: YES, PC: NULL, Owner: NULL, Channels: 2, Time: 2017.02.17-04.12.18

LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: [CLIENT_IP]:49692, Name: IpConnection_14, Driver: GameNetDriver IpNetDriver_21, IsServer: YES, PC: NULL, Owner: NULL

LogNet: UNetDriver::TickDispatch: Very long time between ticks. DeltaTime: 0.01, Realtime: 10.71. IpNetDriver_21

As you can see the logs start very promising as I’ve bolded them. And then they start disconnecting. so I’m very close, but something is failing.

Here are the logs from the client trying to connect to the server. It seems that it’s failing to load the map. But i’m not sure how to resolve this.

LogBlueprintUserMessages: [MainMenu_C_0] open [HOST_IP_ADDRESS]
LogNet: Browse: [HOST_IP_ADDRESS]//Game/TopDownBP/Maps/MainMenu
LogInit: BSD_Android: Socket queue 65536 / 65536
LogInit: BSD_Android: I am localhost (127.0.0.1:0)
LogSockets: (BSD_Android) Adapter IP 25.176.29.11
PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent)
LogNet: Game client on port 7777, rate 10000
LogNetVersion: GetLocalNetworkVersion: CL: 3195953, ProjectName: spycaper, ProjectVersion: 0.0.0.1, EngineNetworkVersion: 2, GameNetworkVersion: 0, NetworkChecksum: 4294748156
LogNet: UPendingNetGame::InitNetDriver: Sending hello. [UNetConnection] RemoteAddr: [HOST_IP_ADDRESS]:7777, Name: IpConnection_0, Driver: PendingNetDriver IpNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL
LogHandshake: SendChallengeResponse. Timestamp: 7.680343, Cookie: 136212134247119174081167000150102010007088015154070166013136
LogHandshake: SendChallengeResponse. Timestamp: 8.013679, Cookie: 177051013201128093203032055001152065066213072047180093122207
LogHandshake: SendChallengeResponse. Timestamp: 8.013679, Cookie: 177051013201128093203032055001152065066213072047180093122207
02-16 20:45:18.449: D/UE4(18970): LogOnline:Warning: FOnlineSubsystemGooglePlayModule was disabled
LogOnline:Warning: FOnlineSubsystemGooglePlayModule was disabled
LogNet: Welcomed by server (Level: /Game/TopDownBP/Maps/UEDPIE_0_TrainingMap, Game: /Game/TopDownBP/Blueprints/TopDownGameMode.TopDownGameMode_C)
LogLoad: LoadMap: [HOST_IP_ADDRESS]//Game/TopDownBP/Maps/UEDPIE_0_TrainingMap?game=/Game/TopDownBP/Blueprints/TopDownGameMode.TopDownGameMode_C

LogLinker:Warning: Can’t find file ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’
LogLinker:Warning: Can’t find file ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’
LogUObjectGlobals:Warning: Failed to load ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’: Can’t find file ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’
LogUObjectGlobals:Warning: Failed to load ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’: Can’t find file ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’

LogLoad: Game class is ‘TopDownGameMode_C’
LogWorld: Bringing World /Game/TopDownBP/Maps/MainMenu.MainMenu up for play (max tick rate 0) at 2017.02.16-20.45.19
LogWorld: Bringing up level for play took: 0.002319
LogOnline:Warning: FOnlineSubsystemGooglePlayModule was disabled
LogOnline:Warning: FOnlineSubsystemGooglePlayModule was disabled
LogGameMode: Warning - PATHS NOT DEFINED or NO PLAYERSTART with positive rating
LogLoad: Took 0.225637 seconds to LoadMap(/Game/TopDownBP/Maps/MainMenu)
LogNet:Warning: Travel Failure: [LoadMapFailure]: Failed to load package ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’
LogNet:Warning: Travel Failure: [LoadMapFailure]: Failed to load package ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’
LogNet: TravelFailure: LoadMapFailure, Reason for Failure: ‘Failed to load package ‘/Game/TopDownBP/Maps/UEDPIE_0_TrainingMap’’
LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: [HOST_IP_ADDRESS]:7777, Name: IpConnection_0, Driver: PendingNetDriver IpNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, Channels: 2, Time: 2017.02.17-04.45.19
LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 205.250.233.202:7777, Name: IpConnection_0, Driver: PendingNetDriver IpNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL

LogAIModule: Creating AISystem for world MainMenu
LogLoad: Game class is ‘TopDownGameMode_C’
LogWorld: Bringing World /Game/TopDownBP/Maps/MainMenu.MainMenu up for play (max tick rate 0) at 2017.02.16-20.45.19
LogWorld: Bringing up level for play took: 0.002228
LogOnline:Warning: FOnlineSubsystemGooglePlayModule was disabled
LogOnline:Warning: FOnlineSubsystemGooglePlayModule was disabled
LogGameMode: Warning - PATHS NOT DEFINED or NO PLAYERSTART with positive rating
LogLoad: Took 0.206379 seconds to LoadMap(/Game/TopDownBP/Maps/MainMenu)

1 Like

Found the problem. Use standalone player, not PIE player. This resolved the map naming issue.