Can i change the listening port from the console?

Hi everyone,

Is it possible to change the listening port from the console ?

I can do it through the command line using: “MyGame.exe ?port=54321”.

It works well but i would like to change the port ingame.

What would be the command in the console ? I tried “open MyMap?listen?port=54321” and “open MyMap:54321?listen” but it didn’t work.

Thanks

Cedric

I am looking for the same answer.

I need this too

Edit: Just found port section in Command-Line Arguments | Unreal Engine Documentation

Gonna figure out how to use it…

Hello,

@Denaton : have you figure it out how to change the port in game?

Regards

I know this is old but I’ve been looking for a solution to this, for people looking for a solution I found out a way but it involves C++ however it gives you so much control. You’ll need to use GetWorld()->Listen() and pass a FURL struct which you can use to select all the settings you need including what port you want to use. See image below.