replace hardcoded server address and IP with the values from config