Skip to content

Network

Björn Teichmann edited this page Dec 19, 2013 · 2 revisions

Banned Addresses

You can ban addresses from connecting to the plugin. You might want to do this, for example, if someone is trying to hack into the plugin by connecting with random server keys. If you notice a lot of failed connection attempts from unknown addresses, use the trp network ban add ... command to add a regular expression that matches the address(es). Use the trp network ban remove ... command to remove address patterns from the ban list. Use the trp network ban list command to display all the banned address patterns.

Options

The network portion of the plugin has a number of options that effect how it behaves. Each option is described below. To set a network option, use the trp network set ... command. Use the trp network get ... command to see current network option values.

Option Type Default Description
bungeeServer string none Specifies the name of this server in the BungeeCord config.yml file. See ServerToServer (Scenario 3) for more information.
listenAddress string 0.0.0.0 Specifies the interface and port the plugin should listen on for incoming requests. The special address of 0.0.0.0 (or *) instructs the plugin to listen on all interfaces. The address can optionally be followed by a colon and a port number. If no port is specified, the default port of 25555 is assumed. Setting this option automatically restarts the network manager.
key string none Specifies the semi-secret key the plugin will use to authenticate itself and encrypt communications with other servers. Setting this option automatically restarts the network manager.
reconnectInterval integer 60000 Specifies the interval, in milliseconds, between attempts to connect to another server. The actual amount of time between connection attempts is random, but this will be the average time.
reconnectSkew integer 10000 Specifies the number of milliseconds the time between reconnects can vary. Along with the "reconnectInterval", this value is used as input to calculate a random amount of time before the next connection attempt.
readBufferSize integer 4096 Specifies the number of bytes in the network receive buffer. Don't change this unless instructed by the plugin author. Setting this option automatically restarts the network manager.
selectInterval integer 30000 Specifies the number of milliseconds the network's asynchronous polling call with wait for activity. Don't change this unless instructed by the plugin author. Setting this option automatically restarts the network manager.
usePrivateAddress boolean true Should we attempt to detect if a connected client is being NAT'ed and redirect them to a server's private address when they're teleporting to that server? If the destination sent no private address, this option has no effect.
sendPrivateAddress boolean true Should we send our local Minecraft server address to remote servers? This is part of the NAT detection system. See the previous option for information about how this address will be used. If set to true, individual servers can specify not to send the private address, or even a different address to send (see the server option "privateAddress").
clusterName string none Specifies the the name of the cluster this server belongs to. This option is required when this server is behind a BungeeCord server and the bungeeCord option is set. See ServerToServer for more information.
suppressConnectionAttempts integer -1 Specifies the number of messages after which no more messages concerning failed connection attempts to remote servers will be displayed on the console. Each remote server keeps tracks of it's connection attempts and suppresses messages when the count exceeds this threshold. A negative value disables this feature so no messages are suppressed.
Clone this wiki locally