0
votes

I am trying to access a remote ArangoDb install (on a windows server).

I've tried changing the endpoint in the arangod.conf as mentioned in another post here but as soon as I do the database stops responding both remotely and locally.

I would like to be able to do the following remotely:

  1. Connect to the server in my application code (during development).
  2. Connect to the server from a local arangosh shell.
  3. Connect to the Arango server dashboard (http://127.0.0.1:8529/_db/_system/_admin/aardvark/standalone.html)
2
Did you double-check that the server is bound to 0.0.0.0:8529? If so, you should be able to access web interface via 127.0.0.1:8529 on the server. - CodeManX
Yes I can access on the server itself, I want to be able to access from another machine. - obaylis
If the remote machine is on the same network, access it via the network IP. If it's over the internet, use the external IP (e.g. myipaddress.com). Note that you may have to configure your firewall to allow incoming and outgoing connections. If the server is behind a NAT (e.g. DSL router), you may need to open the port 8529 in addition. - CodeManX
Sorry, I should have made it clear that both machines are on the same network. I'm accessing it via the server's IP but am unable to connect. - obaylis
is it possible that there is a firewall somewhere, blocking requests? - stj

2 Answers

2
votes

Long time since I came back to this. Thanks to the previous comments I was able to sort this out.

The file to edit is arangod.conf. On a windows machine located at:

C:\Program Files\ArangoDB 2.6.9\etc\arangodb\arangod.conf

The comments under the [server] section helped. I changed the endpoint to be the IP address of my server (bottom line)

[server]
# Specify the endpoint for HTTP requests by clients.
#  tcp://ipv4-address:port
#  tcp://[ipv6-address]:port
#  ssl://ipv4-address:port
#  ssl://[ipv6-address]:port
#  unix:///path/to/socket
#
# Examples:
#   endpoint = tcp://0.0.0.0:8529
#   endpoint = tcp://127.0.0.1:8529
#   endpoint = tcp://localhost:8529
#   endpoint = tcp://myserver.arangodb.com:8529
#   endpoint = tcp://[::]:8529
#   endpoint = tcp://[fe80::21a:5df1:aede:98cf]:8529
#

endpoint = tcp://192.168.0.14:8529

Now I am able to access the server from my client using the above address.

1
votes

Please have a look at the managing endpoints documentation.It explains how to bind and how to check whether it worked out.