When I carry out IP lookups from within Tor, my own IP address is occasionally different to the one showing as my exit relay when viewing the circuit. Sometimes it is very similar (eg my IP: 18.104.22.168 lookup IP: 22.214.171.124) but sometimes it is completely different, why is this?
The answer is simple: you should use a match like "mine or NOT mine" IP address. If you're using a dynamical IP-address from your ISP, so it's likely, that you can exit through a neighbor IP of real exit node. And also there's a multi-homed exit nodes, and they can eject you out of any of their IP's