SiberianGuy
SiberianGuy

Reputation: 25302

Access RavenDb server outside

By default RavenDb server is run as locahost:port. I need to make RavenDb server "visible" from my frontend server (only from my frontend server). What is the easiest way to achieve it?

Upvotes: 2

Views: 702

Answers (2)

Pure.Krome
Pure.Krome

Reputation: 86957

Access to RavenDb requires an IP address and a Port.

by default, it's the IP address of the machine the service is running on and the default starting port, which is 8080.

Therefore, there's no reason why you can use the Private IP of the machine, instead of localhost or 127.0.0.1.

At the same time, you can also use your PUBLIC IP to access it. Just make sure you have Network Address Translation setup if you're outside your network and you're trying to access the private computer within your network.

First up, find your IP Address. Try going to one of these websites which should tell it.

Next, turn on NAT inside your router/modem. This is the hard part. So try reading the instructions to doing that. If you are really stuck, reply with a comment here, giving your Modem/Router model number.

Lastly, this is all a networking issue. It has nothing to do with RavenDb, unfortunately. :) Therefore, this should probably be moved to ServerFault or SuperUser.

Upvotes: 4

oleksii
oleksii

Reputation: 35905

RavenDB uses RESTful based architecture, which means accessing resources through their identifiers, like URI.

http://localhost:8080/ravendb 
is the same as
http://127.0.0.1:8080/ravendb
is the same as
http://[External IP address of your machine]:8080/ravendb

Just make sure your external IP address is visible from the outside

Upvotes: 1

Related Questions