def METHOD_NAME(func):
    def changeDefaultIP(instance, port, ip):
        import socket
        if ip == "0.0.0.0":
            s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
            s.connect(('10.255.255.255', 1))
            IP = s.getsockname()[0]
            ip = IP
            func(instance, port, ip)
        else:
            func(instance, port, ip)
    return changeDefaultIP