# ConnectionTimeout when Client connects to listen server over the internet

**URL:** <https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346>\
**Category:** Multiplayer & Networking\
**Tags:** black-screen, Networking, connection, unreal-engine, question\
**Created:** [May 18, 2020, 7:13am UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346 "2020-05-18T07:13:31Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![YogurtExplosion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YogurtExplosion](https://forums.unrealengine.com/u/YogurtExplosion)\
**Post date:** [May 18, 2020, 7:13am UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/1 "2020-05-18T07:13:31Z")

</div>

Hello Friends!  
I’ve developed a third person sports game over the last weeks. I am stuck on network testing.  
I’ve built a binary and shared it with a friend and my brother. I initiated a session as a listening server.  
But neither of my clients can connect. They get a **ConnectionTimeout** resulting in a black screen and an abort connection after some time.

This is the important bit of the log I found:  
I have replaced my external-ip in the log with “my-ip” . I hope you don’t mind.  
Here is the entire client log-file and server-side log-file

```
LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = ConnectionTimeout, ErrorString = UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 60.01, Real: 60.01, Good: 60.01, DriverTime: 60.01, Threshold: 60.00, [UNetConnection] RemoteAddr: :7777, Name: IpConnection_2147482587, Driver: PendingNetDriver IpNetDriver_2147482588, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID, Driver = PendingNetDriver IpNetDriver_2147482588
[2020.05.17-14.42.50:103][252]LogNet: Warning: Network Failure: PendingNetDriver[ConnectionTimeout]: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 60.01, Real: 60.01, Good: 60.01, DriverTime: 60.01, Threshold: 60.00, [UNetConnection] RemoteAddr: :7777, Name: IpConnection_2147482587, Driver: PendingNetDriver IpNetDriver_2147482588, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID" (From the LOG)

```

My Log of the listening server does not show any sign of an attempted connection. So it fails on the client side completely. I am standing completely in the dark right now. Can someone point me in a direction?

Note: I have forwarded my Port on the Router for port “7777” to my local machine, but nothing…  
It also works locally, when trying to run both server and client from the same machine, obviously.

Some Specs:

I am using this Network-Card:

- Killer Wireless-n/a/ac 1435 Wireless Network Adapter
- Killer E2500 Gigabit Ethernet Controller

Router:

- FRITZ!Box 6490 Cable

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![YogurtExplosion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YogurtExplosion](https://forums.unrealengine.com/u/YogurtExplosion)\
**Post date:** [June 26, 2020, 12:34pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/2 "2020-06-26T12:34:21Z")

</div>

push.  
Please, someone?

---

<div class="post-metadata">

**Author:** ![SmokersCough](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmokersCough](https://forums.unrealengine.com/u/SmokersCough)\
**Post date:** [November 12, 2020, 12:56pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/3 "2020-11-12T12:56:19Z")

</div>

Hi Yogurt, did you ever solve this, i am having the same issue too.

---

<div class="post-metadata">

**Author:** ![YogurtExplosion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YogurtExplosion](https://forums.unrealengine.com/u/YogurtExplosion)\
**Post date:** [November 13, 2020, 9:13pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/4 "2020-11-13T21:13:00Z")

</div>

Hey @smokersCough, unfortunately, I did not! I am currently engaged in other projects and have given up for the time being. Sadly. I wish you good luck with your solution. Feel free to share, if you find something out.

---

<div class="post-metadata">

**Author:** ![Chaxshadow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chaxshadow](https://forums.unrealengine.com/u/Chaxshadow)\
**Post date:** [November 21, 2020, 2:01am UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/5 "2020-11-21T02:01:14Z")

</div>

Make sure that your map/server is marked as listen so when you server travel it knows to open the connection.

World-\>ServerTravel("/Game/Maps/YourServerMapName?listen");

---

<div class="post-metadata">

**Author:** ![SmokersCough](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmokersCough](https://forums.unrealengine.com/u/SmokersCough)\
**Post date:** [November 21, 2020, 4:30pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/6 "2020-11-21T16:30:32Z")

</div>

HI Chaxshadow,

This is using the console from a packaged build i.e. the host loads the map using:

> open “mapname”?listen

and the client uses the console using

> open “public IP”:7777.

But i experienced the same issues Yogurt did, are your suggestions actually BP or code setup or a console command.

Thanks.

---

<div class="post-metadata">

**Author:** ![YogurtExplosion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YogurtExplosion](https://forums.unrealengine.com/u/YogurtExplosion)\
**Post date:** [November 21, 2020, 5:06pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/7 "2020-11-21T17:06:34Z")

</div>

Hey Chaxshadow,

> your map/server is marked as listen

I did this, of course. I think you can find the command on the log file I provided (Download the log file and search for “Command Line:” in your editor. In the server-side script I wrote “FC\_Basic?listen -game -log”). Since the whole process works when I do it locally in the same LAN, the command syntax is correct. I suspect that the problem is an overall networking related problem unrelated to Unreal. I think that either my Router blocks the Access or the NAT translation does not work and so my associates can’t target my IP address. My only hope was, that maybe there was some, to me, unknown Unreal feature that helps with this problem. Or maybe some networking expert that has some trick of the trade, how to fix it.

Have a nice day,  
Yogurt.

---

<div class="post-metadata">

**Author:** ![YogurtExplosion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YogurtExplosion](https://forums.unrealengine.com/u/YogurtExplosion)\
**Post date:** [November 21, 2020, 5:08pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/8 "2020-11-21T17:08:52Z")

</div>

I Think the solution he provided is C++ Code judging by the Syntax “World-\>ServerTravel()” and the “;” at the end.

---

<div class="post-metadata">

**Author:** ![SmokersCough](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmokersCough](https://forums.unrealengine.com/u/SmokersCough)\
**Post date:** [December 13, 2020, 1:09pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/9 "2020-12-13T13:09:47Z")

</div>

That’s kind of the issue, there is no session or server support setup in my project, i just wish to distribute a build and use console commands from the build to let people connect. As you suggested before i also believe it’s a router issue and that Virgin media here in the uk don’t allow you to properly unblock port 7777.

I’ve tired numerous approaches using their router but nothing worked. I’ve lodged a query with them as this is likely to be the main issue, will update if i manage to get this working, in case anyone else is running into this issue.

---

<div class="post-metadata">

**Author:** ![MrHeadshotzz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrHeadshotzz](https://forums.unrealengine.com/u/MrHeadshotzz)\
**Post date:** [January 11, 2021, 4:51am UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/10 "2021-01-11T04:51:40Z")

</div>

I am also having this issue.

---

<div class="post-metadata">

**Author:** ![SmokersCough](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmokersCough](https://forums.unrealengine.com/u/SmokersCough)\
**Post date:** [January 20, 2021, 10:32am UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/11 "2021-01-20T10:32:37Z")

</div>

I believe i’ve found the problem, i had set the port forwarding up correctly and everything else was correct, however, it appears i was missing one simple thing!  
The public dependancies in the Project.Build.cs file were missing the following:  
“Networking” and “Sockets”, so i modified it to this:

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

```

I’ve posted the full answer and logs that i had with the issue here: [https://answers.unrealengine.com/questions/1006902/view.html](https://answers.unrealengine.com/questions/1006902/view.html)

---

<div class="post-metadata">

**Author:** ![YogurtExplosion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YogurtExplosion](https://forums.unrealengine.com/u/YogurtExplosion)\
**Post date:** [May 21, 2021, 1:00pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/12 "2021-05-21T13:00:30Z")

</div>

This seems to make sense at a first glance. I am also familiar with the C++ Side of UE4 by now. However, It bugs me, that there is no “purely” UE4/Blueprint solution. Thanks for sharing.

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [June 16, 2023, 9:08pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/13 "2023-06-16T21:08:33Z")

</div>

This tutorial series creates a basic FPS multiplayer game via blueprints in UE5.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/b/ceb787b862e7b8558363a547d1e9c072a077ddfa.jpeg "Make a Multiplayer Game from scratch - Character - Unreal Engine 5 Beginner Tutorial Part 1") ](https://www.youtube.com/watch?v=_pPCS12aVtg)

---

<div class="post-metadata">

**Author:** ![Sanjay\_varma11](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sanjay_varma11/32/88711_2.png) [@Sanjay\_varma11](https://forums.unrealengine.com/u/Sanjay_varma11)\
**Post date:** [November 18, 2023, 9:06am UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/14 "2023-11-18T09:06:56Z")

</div>

try to search for connectionTimeout.Try to increase the connectionTimeout variable for dedicated server and see the results

---

<div class="post-metadata">

**Author:** ![Kuttenfreak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kuttenfreak](https://forums.unrealengine.com/u/Kuttenfreak)\
**Post date:** [March 17, 2024, 10:23pm UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/15 "2024-03-17T22:23:05Z")

</div>

I used DefaultPlatformService=NULL and I had to  
[OnlineSubsystemSteam]  
bEnabled=false  
SteamDevAppId=480

set bEnabked to false, that made the trick fpr me.

---

<div class="post-metadata">

**Author:** ![Anonymous\_2d390289a05433377bc088fa160c5c9f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_2d390289a05433377bc088fa160c5c9f](https://forums.unrealengine.com/u/Anonymous_2d390289a05433377bc088fa160c5c9f)\
**Post date:** [September 14, 2024, 9:07am UTC](https://forums.unrealengine.com/t/connectiontimeout-when-client-connects-to-listen-server-over-the-internet/465346/17 "2024-09-14T09:07:18Z")

</div>

This configuration causes the packaged file can’t run.
