Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 173195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:18:01+00:00 2026-05-11T13:18:01+00:00

I have 2 machines sitting on my desk and connected to the same IP

  • 0

I have 2 machines sitting on my desk and connected to the same IP network. I’m trying to connect an application from one machine to the postgres database on the other. At first the host with the application on it was giving me the PSQLException:

FATAL: no pg_hba.conf entry for host '192.168.1.18', user 'user1', database 'test', SSL off 

So I edited my pg_hba.conf file to accept the IP address: 192.168.1.18, by adding the line below at the end of the file:

host    pnp         all         192.168.1.18      trust 

Then I got another type of error message:

FATAL: missing or erroneous pg_hba.conf file 

Is there anything I’m missing here?

Thanks, Lancelot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:18:02+00:00Added an answer on May 11, 2026 at 1:18 pm

    You have to specify the netmask of the host too. So either ‘192.168.1.18/32‘ or ‘192.168.1.18 255.255.255.255‘ instead of the bare IP address.

    See the pg_hba.conf file chapter in the online manual for details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 machines running same workers. One machine shoud be primary as it
We recently bought two new build machines that have the same specs/hardware. From what
I have a Web App and a service sitting on the same machine and
I have 2 machines, one runs Windows 7 and another Mac. Hardware config is
i have two machines. one with a locked down ie9 ... and the other
I have an application with Users, Machines, and Tests. Users have many Machines and
This is an interview question. I have K machines each of which is connected
I tote the same .vimrc between machines that have both Vim 7.2 and 7.3
I have two machines: my dev machine has Windows Server 2008 R2 on it,
I have a text file sitting on client machine and want to move it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.