extract the slave IP by removing the port from the right