LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkServerSimple.Listen

public bool Listen(int serverListenPort);
public bool Listen(int serverListenPort, Networking.HostTopology topology);

Parameters

serverListenPortThe port to listen on.
topologyThe transport layer host toplogy to configure with.

Returns

bool True if able to listen.

Description

This starts the server listening for connections on the specified port.