postgresql connect to postgres database from given ip

Viewed 116

I know this might be really a simple question but I don't know what to do. i want to connect to database on server2 from this 10.15.13.12. how should i add my source to do the connection please, i mean from 10.15.13.12 to server2?

I did

engine = create_engine('postgresql+psycopg2://user:pwd@server2/mydb')

Thank you,

0 Answers
Related