fixed netty issue using local port of 0
Merge pull request #993 from andytaylor/master

fix issue with using local port of 0