Port errors

If you are having trouble dealing with an error, please let us know on the Discord.

Errors

  1. Invalid port number . For more details, visit: memgr.ph/ports.
  2. Invalid port number . The port number must be a positive integer. For more details, visit: memgr.ph/ports.
  3. Invalid port number . The port number exceedes the maximum possible size. For more details, visit: memgr.ph/ports.

What port is Memgraph running on?

The default port Memgraph uses is 7687 is not otherwise specified.

How to change the port?

You can change the default port using the configuration settings.

The Memgraph configuration is available in Docker's named volume mg_etc. On Linux systems, it should be in /var/lib/docker/volumes/mg_etc/_data/memgraph.conf. Keep in mind that this way of specifying configuration options is only valid if Memgraph was started using volumes. When using Docker, you can also specify the configuration options in the docker run command:

docker run -p 7687:7687 memgraph/memgraph --log-level=TRACE

To learn about all the configuration options, check out the reference guide.

What is the valid range for choosing a port?

A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. Ports 0 through 1023 are defined as well-known ports. Registered ports are from 1024 to 49151. The remainder of the ports from 49152 to 65535 can be used dynamically by applications.

If you weren't able to find the error, please submit it through a Support Ticket so we can look into it and get back to you.