Merhaba,

Aşağıdaki kod bloğu işinizi görecektir.

select * from tablo_adı where ip in (
select ip from tablo_adı group by ip having count(*) > 1
)