Network Port and Address

By default, Posit Workbench accepts connections on port 8787 for HTTP and 443 for HTTPS.

Configuring a custom HTTP port

To configure Workbench to listen on a different port, modify the www-port option in rserver.conf and restart Workbench. For example:

/etc/rstudio/rserver.conf
www-port=80

By default Workbench binds to address 0.0.0.0 (accepting connections from any remote IP). You can modify this behavior using the www-address option. For example:

/etc/rstudio/rserver.conf
www-address=127.0.0.1

Then restart Workbench by running the following command:

terminal
$ sudo rstudio-server restart

Changes to the configuration do not take effect until the server is restarted.

Back to top