set local_port attribute when we find out what it is