# Trouble Accessing Remote Neo4j Server

**URL:** <https://community.neo4j.com/t/trouble-accessing-remote-neo4j-server/12196>\
**Category:** General\
**Created:** [November 25, 2019, 6:38pm UTC](https://community.neo4j.com/t/trouble-accessing-remote-neo4j-server/12196 "2019-11-25T18:38:49Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![julian1](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/julian1/32/3870_2.png) [@julian1](https://community.neo4j.com/u/julian1)\
**Post date:** [March 10, 2022, 12:28am UTC](https://community.neo4j.com/t/trouble-accessing-remote-neo4j-server/12196/7 "2022-03-10T00:28:05Z")

</div>

If you use Ubuntu on the ORACLE cloud, special extra steps are needed.

This is what worked for me, based on this thread: [ubuntu 18.04 - "No route to host" when trying to connect to a TCP service on an Oracle Cloud Intance - Super User](https://superuser.com/questions/1487012/no-route-to-host-when-trying-to-connect-to-a-tcp-service-on-an-oracle-cloud-in)

**The following extra steps were needed on the Oracle cloud, to open up ports on Ubuntu 20** :

1. `sudo vim /etc/iptables/rules.v4` (or whatever editor you use)
2. After the line `-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT` , insert:

`-A INPUT -p tcp -m state --state NEW -m tcp --dport 1234 -j ACCEPT`

**(change the number of the port that needs to be opened!)**

1. At the shell prompt:

`sudo su -`

`iptables-restore < /etc/iptables/rules.v4`

`exit`

1. The newly-opened port may be tested by going on _another_ Linux machine, and issuing the command:

`nc -zvw100 THE_IP_ADDRESS_OF_MACHINE_WHOSE_PORT_WE_OPENED THE_PORT_NUMBER`

---

_[View the full topic](https://community.neo4j.com/t/trouble-accessing-remote-neo4j-server/12196)._
