# Can we simulate a network latency between client and server?

**URL:** <https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, delay, unreal-engine, question\
**Created:** [September 3, 2014, 8:35am UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760 "2014-09-03T08:35:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![skeleton60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skeleton60](https://forums.unrealengine.com/u/skeleton60)\
**Post date:** [September 3, 2014, 8:35am UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/1 "2014-09-03T08:35:49Z")

</div>

Is there any console command or tips to simulate a network latency between clients and server?

---

<div class="post-metadata">

**Author:** ![xrouter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xrouter](https://forums.unrealengine.com/u/xrouter)\
**Post date:** [September 3, 2014, 9:13am UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/2 "2014-09-03T09:13:37Z")

</div>

If you happen to be on Mac then you can use XCode Network Link Conditioner which is about the best tool I’ve come across for this kind of thing.

Linux you can use ‘ipfw’. This is a little more tricky to setup but there are plenty of examples via google

Windows there are various tools, some better than others but this works well: [clumsy, an utility for simulating broken network for Windows Vista / Windows 7 and above](https://jagt.github.io/clumsy/index.html)

---

<div class="post-metadata">

**Author:** ![skeleton60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skeleton60](https://forums.unrealengine.com/u/skeleton60)\
**Post date:** [September 4, 2014, 6:28pm UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/3 "2014-09-04T18:28:15Z")

</div>

Thanks the tool on [clumsy, an utility for simulating broken network for Windows Vista / Windows 7 and above](https://jagt.github.io/clumsy/index.html) work perfectly for me

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_db03eb5f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_db03eb5f](https://forums.unrealengine.com/u/anonymous_user_db03eb5f)\
**Post date:** [December 22, 2014, 3:38pm UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/4 "2014-12-22T15:38:42Z")

</div>

Check out this blog post: [Finding Network-based Exploits - Unreal Engine](https://www.unrealengine.com/blog/finding-network-based-exploits)

It details some console/config commands to simulate latency, packet loss, etc.

---

<div class="post-metadata">

**Author:** ![tschmi22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tschmi22](https://forums.unrealengine.com/u/tschmi22)\
**Post date:** [August 15, 2017, 9:15pm UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/5 "2017-08-15T21:15:12Z")

</div>

Thank you for the post!

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [February 28, 2018, 9:12pm UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/6 "2018-02-28T21:12:54Z")

</div>

in game, press ~ for console, (try pause break brefore, if the console won’t popup)

```
Net PktLag = <ms>
```

---

<div class="post-metadata">

**Author:** ![leofucci](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leofucci](https://forums.unrealengine.com/u/leofucci)\
**Post date:** [November 25, 2018, 1:57am UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/7 "2018-11-25T01:57:24Z")

</div>

Somebody put this as The Answer

---

<div class="post-metadata">

**Author:** ![ViOTeK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viotek/32/746134_2.png) [@ViOTeK](https://forums.unrealengine.com/u/ViOTeK)\
**Post date:** [June 4, 2024, 6:45pm UTC](https://forums.unrealengine.com/t/can-we-simulate-a-network-latency-between-client-and-server/292760/8 "2024-06-04T18:45:37Z")

</div>

Seeing as this is the first post on google when I searched for “UE5 emulate lag”, I thought I’d mention this;

The Net PkgLag command mentioned above, is for the [PIE based network emulation](https://dev.epicgames.com/documentation/en-us/unreal-engine/using-network-emulation-in-unreal-engine?application_version=5.3).

If you are connected to a dedicated server, check out the [Console Commands For Network Debugging](https://dev.epicgames.com/documentation/en-us/unreal-engine/console-commands-for-network-debugging-in-unreal-engine).

Notably, there are some for emulating lag such as:

NetEmulation.PktLag  
NetEmulation.PktLagMin  
NetEmulation.PktLagMax  
NetEmulation.PktLagVariance

And a lot of others. I know this is an ancient post… Just want to help people find the right resources quickly.
