I am currently working on an android application that saves data to a DB (My requirement is PostgreSQL and not SQLite DB). But I am unable to try saving records in PostgreSQL from my android application. Why i need PostgreSQL is that I need to access these DB records from another Spring MVC application for retrieving the saved records.
I read many blogs about port forwarding
Postgresql server remote connection
https://stackoverflow.com/questions/tagged/portforwarding?page=2&sort=newest
Unable to connect PostgreSQL to remote database using pgAdmin
and tried modifying the pg_hba.conf + postgresql.conf file based on the above blogs. After modifying these files the postgreSQL isn't loading as it says it couldn't find the pg_hba.conf file even though it is present. When i reverted back to original config then it started working but port forwarding settings isn't working.Not Sure whether port forwarding will solve this issue in my requirement. Any advise / alternate solution/ suggestion would really help me in proceeding further.