>MagicBox uses three ports. 5000 is used optionally for a debugger or profiler. 6000 is used for the login server. 8000 is used for the world server. If behind a NAT/router the user must [open these ports](https://portforward.com/games/) on his router or configure a DMZ. It is recommended that you change the external port only via the docker run command not within [magicbane.conf](http://repo.magicbane.com/MagicBane/Server/wiki/magicbane.conf). Docker will automatically bridge traffic to the correct internal port.
Below is the script the MagicBane team uses to cycle MagicBox in testing.
Below is the script the MagicBane team uses to cycle MagicBox in testing.
```console #!/bin/bash
```console #!/bin/bash
@ -178,12 +176,23 @@ At the very least a new MagicBox administrator might wish for to change the worl
`MB_WORLD_NAME="MagicBox"`
`MB_WORLD_NAME="MagicBox"`
It is advised that the Magicbox administrator ***not*** edit the following values.
### Network
It is advised that the Magicbox administrator ***not*** edit the following values. 0.0.0.0 instructs Magicbane to self-configure the bind address and public facing ip.
```MB_PUBLIC_ADDR="0.0.0.0"``` <br>
```MB_PUBLIC_ADDR="0.0.0.0"``` <br>
```MB_BIND_ADDR="0.0.0.0"```
```MB_BIND_ADDR="0.0.0.0"```
This instructs Magicbane to self-configure the bind address and public facing ip.
MagicBox uses three ports. If behind a NAT/router the user must [open ports](https://portforward.com/games/) on his router or configure a DMZ.
| Port | Application |
--------|---------------
| 5000 | Debugger |
| 6000 | Login Server |
| 8000 | World Server |
It is recommended that you change the **external port only** via the docker run command not within [magicbane.conf](http://repo.magicbane.com/MagicBane/Server/wiki/magicbane.conf). Docker will automatically bridge traffic to the correct internal port.
> If using a mobile phone tether in a situation where there is no router to port forward then MagicBox still will function locally. See the [Troubleshootings](http://repo.magicbane.com/MagicBane/Server/wiki/Troubleshootings) page.
> If using a mobile phone tether in a situation where there is no router to port forward then MagicBox still will function locally. See the [Troubleshootings](http://repo.magicbane.com/MagicBane/Server/wiki/Troubleshootings) page.