If you want to expose a web cam to the internet (outside world), you should be placing (setting up) that camera on a separate network (VLAN or different IP segment preferably) so in the event an outside intruder gets into your camera, this is as far as they can go.
The rest of your network...