... | ... | @@ -6,8 +6,8 @@ Steps: |
|
|
|
|
|
2) Enable the REST API. To do this, you will need to manually edit the TShock config file, named `config.json`, located in the `tshock` folder.
|
|
|
Locate these lines:
|
|
|
`"RestApiEnabled": true,
|
|
|
"RestApiPort": 7780`.
|
|
|
`"RestApiEnabled": false,
|
|
|
"RestApiPort": 7878`.
|
|
|
Make sure `"RestApiEnabled"` is set to `true`, with no quotes around `true`. Make sure `"RestApiPort"` is set to a port of your liking (again with no quotes around the value), but not your server's main port.
|
|
|
Beware that as far as we know, TShock will not automatically create a port-forward rule for this port.
|
|
|
Making sure your networking environment allows you to use this port on the open internet is outside the scope of this guide.
|
... | ... | |