IP detection