Results 1 to 4 of 4
  1. #1
    rcr90 is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default How to access pgsql through network

    hi all,
    im new in this forum, so i'd like to greet every member.
    i tried and found sth to solve my problem, but i didn't.

    im developing an application that uses PostgreSQL. The problem is that i have nearly no experience with network programming.

    i need to acces the PostgreSQL through network. My application will access the database via network as well as locally(the server).

    please, can you help me?

  2. #2
    jogep is offline Member
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    43
    Rep Power
    0

    Default

    You mean with JDBC?

    Java Code:
    jdbc:postgresql://<yourip>:5432/<yourdb>
    Don't forget to allow it in the pg_hba.conf file.

  3. #3
    rcr90 is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default

    it's not working, yet.
    i inserted the following permission in the pg_hba.conf file:
    host all all 192.168.1.100/110 trust

    and im using the url:
    jdbc:postgresql://192.168.1.102:5432/<mydb>

    192.168.1.102 is the server ip

    but it couldn't connect.
    Last edited by rcr90; 01-07-2010 at 02:02 PM.

  4. #4
    jogep is offline Member
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    43
    Rep Power
    0

Similar Threads

  1. Default Access (package access) confusion
    By gauravrajbehl in forum New To Java
    Replies: 1
    Last Post: 11-18-2009, 11:48 AM
  2. Entity - Field-Based Access Vs Property Based Access
    By CatchSandeepVaid in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 11-02-2009, 08:18 PM
  3. Web App and network problems?(need help)
    By barusk in forum Java Applets
    Replies: 3
    Last Post: 02-27-2009, 07:18 PM
  4. Method access or field access
    By carderne in forum New To Java
    Replies: 2
    Last Post: 12-06-2008, 07:20 PM
  5. Replies: 1
    Last Post: 08-07-2007, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •