Can we simulate a network latency between client and server?

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

1 Like

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

1 Like

Thanks the tool on clumsy, an utility for simulating broken network for Windows Vista / Windows 7 and above work perfectly for me

Check out this blog post: Finding Network-based Exploits - Unreal Engine

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

2 Likes

Thank you for the post!

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

Net PktLag = <ms>
8 Likes

Somebody put this as The Answer

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.

If you are connected to a dedicated server, check out the Console Commands For Network Debugging.

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.

3 Likes