Fixed bug with incorrect local address retrival.