SimpleTCPServerDocumentation

Enable the Plugin and Configure TCP Listening

Compatibility

  • Unreal Engine 5.2–5.8
  • Version 1.1.0 (Version 2)

Interface language

Open Edit → Project Settings, select the SimpleTCPServer settings page, and set Language to English or Chinese. English is the default. Available user-facing UI, tooltips, notifications, and functional logs update immediately without restarting the editor. Public API names and module startup/shutdown logs remain in English.

Enable the plugin

Once enabled, the plugin activates automatically.
It registers as a GameInstanceSubsystem, and its lifecycle persists across level transitions.

Define a listening channel in Project Settings

Add listening channels under Project Settings → SimpleTCPServer Settings so you can inspect and troubleshoot their settings in one place.

Listening channel parameters

Field NameExampleDescription
Channel NameMainServerThe name used in Blueprints to refer to channel
Bind Address (IP:Port)0.0.0.0:8888Address to bind the listening socket
Max Connections32Max number of concurrent client connections
Max Receive Bytes1024Max buffer size for each message

Start and stop listening in Blueprint

For example, use the settings in the table, start MainServer in Blueprint, and check the same channel with IsServerRunning. Once it is listening, connect a test client to a reachable IPv4 address of the server and its listening port. The bind address is a listener setting.

Node FunctionDescription
StartServerStart listening on a server channel
StopServerStop listening and disconnect all clients on the channel
IsServerRunningCheck if a server channel is running
UpdateTCPServerConfigUpdate channel config (hot reload supported)
GetTCPServerConfigGet current config of a channel

Call StartServer to create the listening socket. StopServer destroys it and disconnects clients on that channel. Listening supports IPv4 only. Hostnames, IPv6, and encryption are unsupported.