BB: Add local IP detection