Techniques for device connectivity are provided. A request to discover available cast devices is received from a first user device, and a first logically defined space is identified, where a first user associated with the first user device is authorized to access the space. A set of cast devices that correspond to the first logically defined space is determined. A first local port on a gateway device is allocated to a first cast device of the set of cast devices. Further, a response to the request is generated, where the response indicates the first local port on the gateway device. The response is transmitted to the first user device.