-
Notifications
You must be signed in to change notification settings - Fork 3
Single computer proxy
The easiest way to set up the proxy is to first set up the servers using the standard setup.
**However, you shouldn't use the standard port (25565). ** This allows the proxy to use the default port 25565.
For the purposes of this guide, the following settings will be assumed. You will need to change the ports on [patcher page](wiki/Single Computer - Patcher) accordingly.
Gameport: 20000
Plugin: 20100
Gameport: 20001
Plugin: 20101
It is assumed that you have this working with basic (no patcher) connectivity. Also, it is assumed that you have at least one gate working to test the teleport functionality.
You need to forward the ports for both servers
25565
20001
20000
However, the second and third ports should only be forwarded temporarily.
If you want other servers on the internet to be able to teleport to your servers, you still need to forward the plugin ports.
20100
20101
Global hostname needs to be reconfigured to handle the proxy. For globalhostname you need to give the information for the proxy to connect to each server.
Assuming that the proxy is running on the same computer as the 2 servers, then you need to use:
On Normal, type
/serverport globalhostname localhost:20001
On Hell, type
/serverport globalhostname localhost:20000
Place the CraftProxy.jar file in a directory.
The command to start the proxy is
java -jar CraftProxy.jar 25565 localhost 20000 auth
This assumes that you have java correctly setup on your machine. You can create a batch file to start the proxy.
The command tells the proxy to listen on port 25565. Any player that connects is then forwarded to localhost on port 20000. This is the Normal server.
You can test the proxy by connecting to the server on port 25565. If the Normal server is running, the proxy should forward the connection to that server.
If you walk through the gate, all the blocks should unload and then the Nether blocks should load. You will see the Nether server with either a blue or black sky.
- hell : Proxy renders the sky with the red nether tinge
- reconnectfile < file name > : Keeps track of user connections
- auth : Tells the proxy to handle check user authorizations.
example java -jar CraftProxy.jar 25565 localhost 25464 auth hell reconnectfile connects