update server addr in server side