Fixed erroneous initial assignment of address and port