fix issue with using local port of 0