now getting ip and port from the config file