Helping you drive digital innovation
RSS Feed of the Mendix Blog
Thanks for Subscribing

Keep an eye out for Mendix resources coming straight to your inbox.

Open Up Your Ports

on February 27, 2013


In version 4.3.0 we improved security by limiting access to the server to requests from the same machine. In other words, trying to connect to the Mendix runtime from another computer will fail by default.

In many cases you will not notice this change. While you are developing you are running the Mendix server on your machine and also accessing it from that same machine. And in production there is a web server in front of the Mendix server which – most likely – is also running on that same computer.

However, you will run into the security enhancement when you are doing mobile development or if you are running the Mendix server in a virtual machine and use the browser of the host machine, e.g. a browser on a Mac with the Modeler running in a VM. In those cases requests come from a different IP address and they will be blocked:

Nothing happens when connecting to a "closed" runtime port

Nothing happens when connecting to a “closed” runtime port

To fix this, you open the runtime port to other machines. Go to Project > Settings > Configurations. Choose the configuration for which you want to open ports and for ‘Runtime port security’ select ‘Open to other machines’:

Opening up the runtime port

Opening up the runtime port

For test, acceptance and production environments it depends on where you apps run whether you need to take action:

  • If you deploy in the Mendix Cloud, you do not need to do anything.
  • If you deploy on premise with the Windows Service Console, you can configure the port security in the Service Console. If the web server is on the same physical machine as the runtime, you do not need to do anything.

To summarize, in many cases you do not need to do anything. The most common case where you run into the port security is when accessing an app through a mobile device during development. In that case, open up your ports!


Subscribe to Our Blog

Receive Mendix platform tips, tricks, and other resources straight to your inbox every two weeks.

RSS Feed of the Mendix Blog
Arjan van IJzendoorn

About Arjan van IJzendoorn

Arjan is a member of the Mendix R&D department. He started developing the Mendix Modeler a long time ago and is still working on that application most of the time. Currently, he focuses on the modeling side of pages and widgets, with the occasional excursion into the rest of the Modeler.

| Community Profile