Adding IP cameras is not a 'standard' (or at least wasn't)... and not all protocols are supported. if I recall correctly, RTSP can be added with native support, but NDI can not. And even RTSP, you have to configure the camera correctly in terms of output settings.. FIRST, before trying to add in OBS Studio
DO NOT assume the default camera settings will work with your computer, network, and/or OBS Studio... as to what should those settings be? that depends on your camera, computer, your network, your expectations/requirements, etc. ie, it depends.
As with all Audio and Video sources, the most direct troubleshooting step is to make sure your connectivity (feed) is working correctly at the Operating System level. Then make sure Operating System permissions are properly configured such that OBS Studio can access whichever device is involved. And beware that for an IP camera, web browsing to the camera and seeing expected video feed is NOT even close to be the same as sending a video feed from the camera to the computer, and running software on the computer to receive that video feed
Personally, I prefer NDI over RTSP for our PoE PTZ cameras for House of Worship, but due to licensing such cameras tend to be more expensive.. but I also use a camera vendor that provides a virtual NDI to USB applet that makes the NDI video feeds available as though a locally attached USB camera to all applications (including OBS Studio) which makes things so much easier than the NDI Tools and NDI plugin route