Fixes bug that node tried to listen on public ip.
Fixes test mode compatibility with previous commit.