Skip to main content

Port errors

info

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

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. volumes](#named-volumes).

When using Docker, you can also specify the configuration options in the docker run command:

docker run -p 7687:7687 memgraph --bolt-port=7687

To learn about all the configuration options, check out the [Reference 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.

note

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.