Revert "localhost connection include port number"

This reverts commit b3417a85d12242f273be0027cad9dfb9bee66b2b.