title: Can I deploy FIWARE IDAS communicating with an Orion Context Broker instance running on a different virtual machine from IDAS?
body: <p>I want to deploy an IDAS (FIWARE Backend Device Manager) i.e. IOTA instance that will communicate and send data to an already existing Orion Context Broker instance running in a different virtual machine from the one hosting IDAS. Is that possible? Or is it necessary for the two services to be in the same virtual machine?</p>
  
  <p>I am using an IoTAgent-JSON (I think it's 1.6.2 version) for MQTT transport.</p>
  
  <p>This is the config.js file (I have already replaced the contextBroker host with the host of my Orion Context Broker, as you can see, it was "localhost" before):</p>
  
  <pre><code>var config = {};
  config.mqtt = {
      host: 'localhost',
      port: 1883,
      thinkingThingsPlugin: true
  };
  config.iota = {
      logLevel: 'DEBUG',
      timestamp: true,
      contextBroker: {
          host: '147.27.60.182',
          port: '1026'
      },
      server: {
          port: 4041
      },
      deviceRegistry: {
          type: 'mongodb'
      },
      mongodb: {
          host: 'localhost',
          port: '27017',
          db: 'iotagentjson'
      },
      types: {},
      service: 'howtoService',
      subservice: '/howto',
  </code></pre>
  
  <p><strong>IoTA endpoints:</strong> 
  <a href="http://147.27.60.202:5351/iot/services" rel="nofollow noreferrer">http://147.27.60.202:5351/iot/services</a>
  (Fiware-Service: openiot, Fiware-ServicePath: /, X-Auth-Token: [TOKEN])    </p>
  
  <p><a href="http://147.27.60.202:4041/iot/devices/" rel="nofollow noreferrer">http://147.27.60.202:4041/iot/devices/</a>
  (Fiware-Service: tourguide, Fiware-ServicePath: /)</p>
  
  <p><strong>My Orion Context Broker (where I want to send data) endpoint:</strong> 
  <a href="http://147.27.60.182:1026/v2" rel="nofollow noreferrer">http://147.27.60.182:1026/v2</a> </p>
  
  <p><em>P.S.: I have tried to change the mongodb host, too.</em></p>
  
  <p><a href="https://i.stack.imgur.com/MFzA0.png" rel="nofollow noreferrer">Image: how the service runs</a></p>