0

I'm new to Ubuntu.

I followed How to install pgAdmin 4 in server mode on Ubuntu 16.04 to configure pgadmin4 on my Ubuntu server successfully.

It says navigate to http://localhost:5050 in your browser.

But, my Ubuntu machine is a server that has IP address ...* and I don't know how I can test my pgadmin using that IP as localhost.

I used these commands to create pgAdmin4:

sudo pip install virtualenvwrapper
cd ~
virtualenv pgadmin
cd pgadmin
source bin/activate
sudo apt-get install build-essential libssl-dev libffi-dev python-dev libgmp3-dev
sudo pip install cryptography pyopenssl ndg-httpsclient pyasn1 
sudo apt-get install build-essential libssl-dev libffi-dev python-dev libgmp3-dev
sudo pip install cryptography pyopenssl ndg-httpsclient pyasn1 
find . -wholename "*pgadmin4/config.py"
cp ./lib/python2.7/site-packages/pgadmin4/config.py ./lib/python2.7/site-packages/pgadmin4/config_local.py
python  ./lib/python2.7/site-packages/pgadmin4/pgAdmin4.py
  • Have you tried http://[your.server.ip.address]:5050 ? – hmayag Dec 20 '16 at 9:16
  • thanks for response ..i tried but not working – Manish Dec 20 '16 at 10:15
0

pgAdmin4 has a config file namely config.py possibly located in ~/.local/lib/python2.7/site-packages/pgadmin4. In which, change the DEFAULT_SERVER = '' instead of 'localhost', so pgAdmin4 can be access from a public IP address.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.