Accessing ports

Strove gives access to ports 3000, 4000, 8000 and 8080 by default.

If you want to access urls your app is running on inside your application, for example to connect two running applications, you can use environment variables.

Url for app running on port 3000 is available under STROVE_PORT_3000, app running on port 8000 is available under STROVE_PORT_8000 and so on. For example, to access environment variable in Node.js you can do:


To read how to use non-default ports such as 1234 read Using custom portssection.

Updated 07 Dec 2019
Did this page help?