Hosting

IP Address

By default, HaasOnline TradeServer Enterprise uses the IP address 127.0.0.1 to host its interface.

Hosting something at IP address 127.0.0.1 means it's only accessible locally, this is why by default the HTTP protocol is used and not HTTPS.

You can edit the settings.env to change the IP address to a new one. This enables you to host it within your own network or to host it externally. When hosting it externally it's recommended to tunnel the connection so you can setup a self-signed certificate and host it on HTTPS.

Ports

By default, TradeServer Enterprise uses ports:

  • 8090 for REST communication

  • 8092 for socket communication.

When you host TradeServer Enterprise on your local network or remotely then you must make sure you allow both incoming and outgoing traffic over these 2 ports.

Setting up Hosting Details

In the "settings.env" file you will find the following hosting details. To host remotely you need to change the "EXTERNAL_" fields and setup your public IP inside it.

# --------------------------------------
# REST (API) Server Settings
# --------------------------------------
SERVER_PROTOCOL = http
SERVER_HOST = 127.0.0.1
SERVER_PORT = 8090

EXTERNAL_SERVER_PROTOCOL = http
EXTERNAL_SERVER_HOST = 127.0.0.1
EXTERNAL_SERVER_PORT = 8090

# --------------------------------------
# Socket Server Settings
# --------------------------------------
SOCKET_HOST = 127.0.0.1
SOCKET_PORT = 8092

EXTERNAL_SOCKET_HOST = 127.0.0.1
EXTERNAL_SOCKET_PORT = 8092
Configuration

Last updated