properly use rest listen address when binding

fixes #462