MDL-43987 core: Remove port numbers in cleanremoteaddr