Server configuration

Socks server is totally configurable. The source code is provided, so if something is not working to fit your needs, you are totally free to change it.

Some parameters are configurable by default that affect the server behaviour.

Lets check the config.js file:

const config = {
    version: '0.1.0',
    serverPort: 7537,
    panelPort: 7538,
    panelEnabled: true,
    panelPath: 'cpanel',
    distanceBroadcast: 0,
    debugEnabled: false,
    minUsernameLength: 3,
    maxUsernameLength: 16,
    minPasswordLength: 6,
    liveCheckTime: 5000,
    disabledCodes: [],
}

Parameters

  • version: (string) defines the server version and is returned on version check (type 100)

  • serverPort: (int) defines the port where the server will be running

  • panelPort: (int) defines the port where the web cpanel will be running

  • panelEnabled: (bool) defines if the web cpanel will run or not on server startup

  • panelPath: (string) defines the path where the web cpanel will be running

  • distanceBroadcast: (int) defines maximum distance in Unity meters for distance-based packets

  • debugEnabled: (int) defines if debug messages should be shown on the server console

  • liveCheckTime: (int) defines the time in ms for checking if there were any unnoticed disconnect

  • disableCodes: (array of int) use it to disable the types you don't want to be enabled (i.e. [340,341])

Last updated