Launch HTTP Server from User Interface
You can start and stop a HTTP server in Dymola Behavior Modeling, using an interface.
-
To display the
Dymola Http Server dialog box, from the
Tools section of the
action bar,
click
Start/Stop Http Server
.
Tip: You can find this command also in the App Options panel, in the System Behavior Options group. To access the App Options panel, from the Tools section of the action bar, select App Options . -
Select Python option.
Note: Select the JavaScript option if you want to use the JavaScript API.
-
Optional: Specify port number in the
Port field.
Note: The default port numbers for Python and JavaScript are 44000 and 8082 respectively. If the port number is changed, it is saved and displayed as the default port number when the dialog box is reopened.
-
To start the server, click
Start.
The server is started and configured to listen on the specified port.
-
To stop the server, click
Stop.
Note: If you close the Dymola Http Server dialog box while the server is running, a new dialog box appears to ask for confirmation. Click Yes to stop the server or No to keep the server running.