<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pghba.conf &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/pghba-conf/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 26 Sep 2017 19:14:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>PostgreSQL: How to Allow Remote Connection to Connect Database</title>
		<link>https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/</link>
					<comments>https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 04 Jan 2016 18:19:00 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[listen_addresses]]></category>
		<category><![CDATA[pghba.conf]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[remote]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1235</guid>

					<description><![CDATA[I installed and configured PostgreSQL in one of our client computers and found the problem of TCP/IP. When a client machine tried to connect the PostgreSQL Server, it got an error like &#8220;psql:could not connect to server:Connection refused&#8221;. If you need to the connect all clients with PostgreSQL server, you should perform the below two [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&#038;title=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" data-a2a-url="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/" data-a2a-title="PostgreSQL: How to Allow Remote Connection to Connect Database"></a></p><p>I installed and configured PostgreSQL in one of our client computers and found the problem of TCP/IP.</p>
<p>When a client machine tried to connect the PostgreSQL Server, it got an error like <strong>&#8220;psql:could not connect to server:Connection refused&#8221;.</strong></p>
<p>If you need to the connect all clients with PostgreSQL server, you should perform the below two actions.</p>
<p><strong>Add client IP-Address ranges into pg_hba.conf :</strong><br />
pg_hba.conf is a configuration file which controls the Client Authentication. This file automatically installed when the data directory is initialized. </p>
<p>Below is a default entry in pghba.conf file. </p>
<pre class="crayon-plain-tag"># IPv4 local connections:
host    all         all         127.0.0.1/32          md5
# IPv6 local connections:
host    all         all         ::1/128               md5</pre> </p>
<p>In our example, we have a client, IP-Address which is &#8220;10.0.0.12&#8221;. If you require connecting this client with PostgreSQL Server, please add below entry in the pghba.conf and after that save the file and restart PostgreSQL Service. </p>
<pre class="crayon-plain-tag">host    all         all         10.0.0.12/24    md5</pre> </p>
<p><strong>Another method is to change listen_addresses parameter in postgresql.conf :</strong></p>
<p>In the PostgreSQL configuration file (postgresql.conf), by default listen address is &#8220;localhost&#8221; like,</p><pre class="crayon-plain-tag">listen_addresses = 'localhost'</pre><p> </p>
<p>Please change this parameter value from &#8216;localhost&#8217; to &#8216;*&#8217; so that all clients can connect from different networks.</p>
<pre class="crayon-plain-tag">listen_addresses = '*'</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
