title: How to connect to neo4j server using popoto js
body: <p>So I have my neo4j running on ec2 instance in a private subnet and my front end is in the same subnet. I have attached a nat instance to my ec2 instance and use route53 to hit the nat instance. so when I run in my browser the dns loads the front end and the page is visible but there is an error connecting to the neo4j database. but when i run my frontend on my local with port forwarding to the neo4j through an ssh tunnel it works fine.</p>
  <p>when running the code in my local:
  .ssh/config file has localforwarding from port 33207 to the neo4j instance</p>
  <p>my code:
  popoto.rest.CYPHER_URL = &quot;http://localhost:33207/db/data/transaction/commit&quot;; popoto.rest.AUTHORIZATION = &quot;Basic &quot; + btoa(&quot;neo4j:*****&quot;)
  this works</p>
  <p>but when trying running the front end from the ec2 instance in the same subnet:
  my code
  popoto.rest.CYPHER_URL = &quot;http://ipofneo4jinstance:7474/db/data/transaction/commit&quot;; popoto.rest.AUTHORIZATION = &quot;Basic &quot; + btoa(&quot;neo4j:*****&quot;)</p>
  <p>this does not work</p>