Config.json: ip address vs. hostname

Hi,

I have setup a Xibo test installation on a public sandbox server at https://xibo.slackbox.fr. The documentation gives an example for the config.json file to edit. Can I use the hostname instead of the IP address in this file, e. g. something like this?

{
  "listenOn": "tcp://localhost:50001",
  "pubOn": ["tcp://xibo.slackbox.fr:9505"],
  "debug": false
}

Or does it have to be the IP address?

{
  "listenOn": "tcp://localhost:50001",
  "pubOn": ["tcp://163.172.220.174:9505"],
  "debug": false
}