Dynamically set configuration options for public and private ips

Dynamically set config options :host and :alt-host with public and private ips so it can be used by peers on other computers without editing the config file.