ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > Additional Configuration of WS EMS > Example Configurations > Gateway Mode with Explicitly-Defined Remote Things Example
  
Gateway Mode with Explicitly-Defined Remote Things Example
Although remote things can be set to identify themselves to the WS EMS, in many cases the remote things that connect to the WS EMS are well-known. In this case, you can explicitly define them within the configuration of the WS EMS.
For more information on configuring the auto_bind group of the configuration file, refer to the section, Configuring Automatic Binding for WS EMS and to the section, AutoBound Gateways.
The example below illustrates how to configure the WS EMS for this scenario:
* 
In the example below, EdgeThing001 is an explicitly defined remote thing that runs at a specified IP Address and listens on port 8001.
{
"ws_servers":[{
"host":"",
"port":443
}]
"appKey":"some_encrypted_application_key",
"ws_connection":{
"encryption::"ssl"
},
"auto_bind"[{
"name":"EdgeGateway001",
"gateway":true
}
{
"name":"EdgeThing001",
"host":some_ip_address>",
"port":8001
}
]
}
To encrypt an Application Key, see Encrypting Application Keys, Passwords, and Passphrases.