Fix: add server ip, and change format function to %s because python 2.6 not support it