LANPLAY command line argument not working

I’m trying to increase the network bandwidth for my clients. The server can’t force a minimum bandwidth, but the default settings include the following:
[/Script/Engine.Player]
ConfiguredInternetSpeed=15000
ConfiguredLanSpeed=20000

This means if I get my server into lanplay mode the bandwidth would increase from 15,000byte/s to 20,000byte/s as long as MaxClientRate is atleast 20,000
[/Script/OnlineSubsystemUtils.IpNetDriver]
MaxClientRate=20000

The problem is the server isn’t going into LANPLAY mode, and it’s using the internet settings instead. I can tell it’s not in LANPLAY mode because I’m using the settings below but the tickrate remains 30 unless I edit the NetServerMaxTickRate.
[/Script/OnlineSubsystemUtils.IpNetDriver]
NetServerMaxTickRate=30
LanServerMaxTickRate=60

How do I get my server into LANPLAY mode? The command line argument doesn’t work!

I don’t know if the command lines are case-sensitive, but in the code it is looking for “lanplay” instead of “LANPLAY”:


static const bool bLanPlay = FParse::Param(FCommandLine::Get(),TEXT("lanplay"));

It didn’t work and ?bLanPlay did not work either. It’s common practice to strip LAN capabilities so that thieves can’t play multiplayer unless they purchase the game.

For one last test I will attempt to run the server on the ipnet driver instead of the steamnet driver, but I’m rather certain that it’s been stripped for the same reason too.

thanks for the help

You could alternatively override those numbers in your project config and have the internet speed simply match the lan speed.