Fixes bug that node tried to listen on public ip.
Fixes test mode compatibility with previous commit.
Merge pull request #17 from jonasnick/master

Fix connection with remote node