Asuming that your ip adresses are in column A, starting in A2. The table of ips and cities are in columns L:M.

So something like this in B2 and copy down.

Formula: copy to clipboard
=index(m:m,match(a2,l:l,0))