Making the config file work with the ip and port