Announcement

Collapse
No announcement yet.

How to run the game without the server.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    You could force your game to automatically connect to a particular server after it loads up by adding a Execute Console Command from an On Begin Play event (open <ip address of server>).

    Alternatively, run your game via command line like:
    C:\Program Files\Unreal Engine\4.6\Engine\Binaries\Win64\UE4Editor.exe C:\MyGame\MyGame.uproject 127.0.0.1 -game -log

    Leave a comment:


  • replied
    Originally posted by FlameX View Post
    Hi, i would like to ask if it is possible to only run the game as client when executing the game, the game is used to connect to a dedicated server, so it should not start as a server. Any help would be appreciated, thanks!
    When you start your game.exe it does start as a standalone client. The only time it will start as a listen server is if you give it the ?listen commandline arg. and the only time it will start as a dedicated server is if you build the dedicated server .exe

    Leave a comment:


  • replied
    Wait, if you start your game as an .exe file, it starts a dedicated server?

    Leave a comment:


  • started a topic How to run the game without the server.

    How to run the game without the server.

    Hi, i would like to ask if it is possible to only run the game as client when executing the game, the game is used to connect to a dedicated server, so it should not start as a server. Any help would be appreciated, thanks!
Working...
X