Replaced port sent to master with 0 to indicate behind a router