1: Server - connected to gate, opens webserver, checks if gate is open or closed 2: Client - built into lamp, connects to webserver, closes relais if gate is opened