By default, the BrainFrame server connects to IP cameras directly. This necessitates that the the IP camera is either on the same network as the server, or is made accessible through other means, like port forwarding.
For situations where this is undesirable, a stream may optionally be configured to be part of a premises. BrainFrame will connect to these streams through the StreamGateway instead, which acts as a proxy to bypass firewalls. See the Premises section in the User Manual for details.
brainframe.api.BrainFrameAPI.get_premises
brainframe.api.BrainFrameAPI.get_all_premises
brainframe.api.BrainFrameAPI.set_premises
brainframe.api.BrainFrameAPI.delete_premises
brainframe.api.bf_codecs.premises_codecs