Setting local port when the connection is opened.

Otherwise it will be undefined