Replace useless host config with port number