Moving Listen() up so the port is determined before the peerhash is generated.