Don't hard code ports

First go at a fix for https://github.com/mmalecki/hock/issues/2