Reply To: Running from external server

About Forums Forum Running from external server Reply To: Running from external server


By running from an external server I assume you mean you want to run Breakout Server on one computer and connect to it from another computer.

There are two options:

1. If you want to host your web application remotely but run it locally you need to upload your application to the external server (like you normally would when hosting a website/web application). When you load your application on your computer as long as you have an Arduino board connected and Breakout Server running, you will be able to run your application on your computer. In your application, when you instantiate the IOBoard object you need to make sure you set the IP address to “localhost” because when you load the website in your browser even though it is hosted on an external server, it is really downloaded and running locally which is why you are able to connect to the Arduino board.

2. The second option is to connect an Arduino board to the external server and run Breakout Server on the external server. You can then write an application on your local computer that can communicate with the Arduino connected to the remote server. In order for this to work you need to set the IP address to the address of the remote server when you instantiate the IOBoard object in your application. For example: var arduino = new IOBoard("", 8887) (substituting the IP address in quotes with the IP address of the remote server). Your local computer also needs to be connected to the same network as the external server in order for this to work. Depending on your web application you may also need to start a web server on your local machine in order to run your app. If you would like to be able to connect to the Arduino running on the remote server from multiple computers, you need to check the box for Enable Multi-Client Connections in the Settings tab of Breakout Server.