UE4 Dedicated Server

Tell me, please, which way is the source dedicated server engine? For example, I want to change the server port. How can i do this?

When I want to test my dedicated server I use the following command in a batch file:

“C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\Win64\UE4Editor.exe” “%CD%\OpenWorld.uproject” Login?listen -server -log -nosteam -port=7777

You will have to change [OpenWorld] to your project name and change the path to your UE4Editor.exe file. Then just change 7777 to the port you want it to run on. If you are accessing it externally, be sure to setup port forwarding on your router.