Due to the depletion of energy resources and increased energy demand, there is an increased focus on the energy consumption and management in buildings. Many building energy management (BEM) software platforms are commercially available to monitor and control energy consumption. These platforms are hosted on the physical hardware within the building, due to which the hardware specifications limit their performance. To address this limitation, cloud technology emerged which facilitates software to be deployed at a remote location that has scalable hardware resources. Conventional BEM software can leverage such a cloud platform to offer scalable and maintenance-free installation. Once hosted on a remote cloud platform, BEM software lacks direct connectivity to building sensors/controllers, hence requires a device to support remote accessibility. Most devices are bound to a local area network and therefore, need an additional functional layer on top of its communication stack to perform network address translation (NAT)-Traversal. This functionality is implemented on a scalable software which connects to the devices in the network and acts as a gateway for cloud-based BEM software to access devices in the local area network. Any message sent to this gateway is translated to a respective device protocol. This paper describes the design and implementation of such an Internet of Things (IoT) gateway for a cloud-based BEM system that requires support for BACnet, Modbus, and HTTP RESTful interface devices.