any idea to replate all ip's with only one? like: IP = 192.168.2.45 urllib2.urlopen('http://IP/control/rcem?KEY_HOME')