Client cannot connect to listen server of packaged game

Hi guys,

I have been trying to get a packaged version of my game working across the network.

The packaged version of the game does not have any particular MP features programmed, i just want to zip up a packaged build and send it to a friend.

Now i have ensure that port 7777 is open on my router. But when i run the packaged build and use:

open 'mapname'?listen

to create a server clients are unable to connect to me using

open 'myipaddress:7777' 

The error log shows:

[2021.01.18-15.29.51:805][787]LogNet: Warning: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: MYIP:7777, Name: IpConnection_2147482348, Driver: PendingNetDriver IpNetDriver_2147482349, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
[2021.01.18-15.29.51:805][787]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = ConnectionTimeout, ErrorString = UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: MYIP:7777, Name: IpConnection_2147482348, Driver: PendingNetDriver IpNetDriver_2147482349, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID, Driver = PendingNetDriver IpNetDriver_2147482349
[2021.01.18-15.29.51:805][787]LogNet: Warning: Network Failure: PendingNetDriver[ConnectionTimeout]: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: MYIP:7777, Name: IpConnection_2147482348, Driver: PendingNetDriver IpNetDriver_2147482349, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
[2021.01.18-15.29.51:805][787]LogNet: NetworkFailure: ConnectionTimeout, Error: 'UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: MYIP:7777, Name: IpConnection_2147482348, Driver: PendingNetDriver IpNetDriver_2147482349, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID'

When i use various tools and netstat to see if the game is listening on port 7777 it appears nothing is listening on the port. Can anyone help with this as it is driving me mad and i feel like i have exhausted all my options.

Hey guys i’ll also add that when i create a server with the listen command the log also states:

LogNet: Created socket for bind address: 0.0.0.0 on port 7777.

Shouldn’t this be my IP instead? Could this be the issue?

Ok so another update here, adding “Networking” and “Sockets”, see below.

PublicDependencyModuleNames.AddRange(new string[] { “GameplayAbilities”, “GameplayTags”, “GameplayTasks”, “Core”, “CoreUObject”, “Engine”, “InputCore”, “UMG”, “ApexDestruction”, “PhysicsCore”, “Networking”, “Sockets” });

In my Project.Build.cs file now seems to actually result in the UDP connection appearing, however it’s not listening which is odd. Im using a program called CurrPorts to check port behaviour.

2 Likes

This seemed to fix the issue.

I realize this is a year old…but this issue just arose and I’m trying to troubleshoot it - Unfortunately, I cannot access the link. :frowning:

Hi SigHellion,
What are you experiencing exactly, it didn’t work for me because i was missing the entries in my build.cs folder and i had to make sure i had port forwarding setup for port 7777 on my router.

I have same problem… adding networking and sockets did not help… I dont know what to do ah

I have the same problem…

Okay I had the exact same issue. Exact same output in CurrPorts where it said 7777 was open but didn’t say listening. Also had the exact same timeout issues even though finding sessions and joining session seemed to work.

THE SOLUTION: Properly configure port forwarding on my router.
WHY: It turns out EOS OSS plugin in unreal IS NOT automatically configuring P2P NAT stuff even though the EOS SDK has those features implemented the EOS OSS plugin doesn’t use them.

There is this other plugin that is made by RedPoint that explicitly says it does automatically do the NAT P2P stuff. But it is $130 and I don’t want to spend the money to find out if it works.

Overall I lost many hours to this issue, and I’m sad because the entire reason I switched to EOS instead of manually handling stuff was so it would handle the NAT stuff but it doesn’t do that. Overall and I wish:

  1. EOS OSS plugin was more explicit about it NOT HAVING nat p2p stuff and that if you are using p2p connections you MUST configure port forwarding on your router.
  2. EOS OSS plugin handled the NAT P2P stuff like the EOS SDK that it is built on top of can do.

Hope this post saves other people some time and confusion.

I also have the same error. Adding the two Networking and Sockets didn’t work.

Shouldn’t EOS handle things like port forwarding or whatever? If it can’t then if I shipped my game would that mean no one would be able to host a session if they didn’t mess with their router?

I’m using EOS.

Here is info about my error:

[2023.03.03-21.39.00:172][675]LogTemp: Warning: Connecting to: 73.10.32.194:7777
[2023.03.03-21.39.00:172][675]LogNet: Browse: 73.10.32.194/Game/ThirdPerson/Maps/MainMenu
[2023.03.03-21.39.00:172][675]LogInit: WinSock: Socket queue. Rx: 32768 (config 32768) Tx: 32768 (config 32768)
[2023.03.03-21.39.00:173][675]LogNet: Created socket for bind address: 0.0.0.0:0
[2023.03.03-21.39.00:173][675]LogNet: IpConnection_2147482486 setting maximum channels to: 32767
[2023.03.03-21.39.00:173][675]PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent)
[2023.03.03-21.39.00:180][675]LogHandshake: Stateless Handshake: NetDriverDefinition 'GameNetDriver' CachedClientID: 2
[2023.03.03-21.39.00:180][675]LogNet: Game client on port 7777, rate 100000
[2023.03.03-21.39.00:181][675]LogNetVersion: Learningcpp 1.0.0.0, NetCL: 23058290, EngineNetVer: 30, GameNetVer: 0 (Checksum: 3313211597)
[2023.03.03-21.39.10:175][676]LogNet: Initial Connect Diagnostics: Sent '9' packets in last '10.003320' seconds, no packets received yet.
[2023.03.03-21.39.20:180][596]LogNet: Initial Connect Diagnostics: Sent '10' packets in last '10.003864' seconds, no packets received yet.
[2023.03.03-21.39.20:191][598]LogNet: Warning: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.02, Threshold: 20.00, [UNetConnection] RemoteAddr: 73.10.32.194:7777, Name: IpConnection_2147482486, Driver: PendingNetDriver NetDriverEOS_2147482487, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
[2023.03.03-21.39.20:191][598]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = ConnectionTimeout, ErrorString = UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.02, Threshold: 20.00, [UNetConnection] RemoteAddr: 73.10.32.194:7777, Name: IpConnection_2147482486, Driver: PendingNetDriver NetDriverEOS_2147482487, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID, Driver = PendingNetDriver NetDriverEOS_2147482487
[2023.03.03-21.39.20:191][598]LogNet: Warning: Network Failure: PendingNetDriver[ConnectionTimeout]: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.02, Threshold: 20.00, [UNetConnection] RemoteAddr: 73.10.32.194:7777, Name: IpConnection_2147482486, Driver: PendingNetDriver NetDriverEOS_2147482487, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
[2023.03.03-21.39.20:191][598]LogNet: NetworkFailure: ConnectionTimeout, Error: 'UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.01, Real: 20.01, Good: 20.01, DriverTime: 20.02, Threshold: 20.00, [UNetConnection] RemoteAddr: 73.10.32.194:7777, Name: IpConnection_2147482486, Driver: PendingNetDriver NetDriverEOS_2147482487, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID'
[2023.03.03-21.39.20:191][598]LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: 73.10.32.194:7777, Name: IpConnection_2147482486, Driver: PendingNetDriver NetDriverEOS_2147482487, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID, Channels: 2, Time: 2023.03.03-21.39.20
[2023.03.03-21.39.20:191][598]LogNet: UNetConnection::SendCloseReason:
[2023.03.03-21.39.20:191][598]LogNet:  - Result=ConnectionTimeout, ErrorContext="ConnectionTimeout"
[2023.03.03-21.39.20:191][598]LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 73.10.32.194:7777, Name: IpConnection_2147482486, Driver: PendingNetDriver NetDriverEOS_2147482487, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
[2023.03.03-21.39.20:196][599]LogNet: Browse: /Game/ThirdPerson/Maps/MainMenu?closed
[2023.03.03-21.39.20:196][599]LogNet: DestroyNamedNetDriver NetDriverEOS_2147482487 [PendingNetDriver]
[2023.03.03-21.39.20:197][599]LogExit: PendingNetDriver NetDriverEOS_2147482487 shut down
[2023.03.03-21.39.20:197][599]LogNet: Connection failed; returning to Entry

Same problem as OP, but I don’t think adding Networking and Sockets includes are going to help, as I’m using the default configuration for my dedicated server and able to connect locally.