Skip to content

how to connect neo4j auradb behind firewall proxy with python api #904

Closed Answered by robsdedude
furyNerd asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, there is no config option for this. Ideally, you'd talk to the IT department of your organization (or who else is in charge of the proxy) and ask them to configure a firewall exception for your database.

For just playing around, here's a quick and dirty hack.⚠️ It's not at all a sustainable solution and putting it into production is a horrible idea. So please take it for what it is.

import neo4j

URI = "neo4j+s://<YOUR AURA URL>"
AUTH = ("neo4j", "<PASSWORD>")


# requires `pip install python-socks`
def apply_dirty_hack():
    """Make the driver use python-socks to connect through a proxy.

    .. warning::
        This is a dirty hack as the name suggest.
        It's written …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by robsdedude
Comment options

You must be logged in to vote
1 reply
@robsdedude
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants