<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CLI error: is server running on host and acceptingTCP/IP connections on port 5432? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CLI-error-is-server-running-on-host-and-acceptingTCP-IP/m-p/869929#M343624</link>
    <description>&lt;P&gt;Whenever I run the following line of code in SAS Studio:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname test1 postgres server="192.xxx.xx.xxx" port=5432&lt;BR /&gt;user=postgres password='postgres' database=mydb;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;ERROR: CLI error trying to establish connection: could not connect to server: Connection timed outIs the server running on host&lt;/DIV&gt;&lt;DIV class=""&gt;"192.xxx.xx.xxx" and acceptingTCP/IP connections on port 5432?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Note: I can access the database server&amp;nbsp;"192.xxx.xx.xxx" from a pgadmin UI on machines other than&amp;nbsp;"192.xxx.xx.xxx".&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I can ping to&amp;nbsp;"192.xxx.xx.xxx".&lt;/DIV&gt;&lt;DIV class=""&gt;This connects perfectly well from any machine:&lt;/DIV&gt;&lt;DIV class=""&gt;psql -h&amp;nbsp;192.xxx.xx.xxx -U postgres -d postgres&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;This also works from any machine:&lt;/DIV&gt;&lt;DIV class=""&gt;telnet&amp;nbsp;192.xxx.xx.xxx 5432&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Please help.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Apr 2023 00:00:59 GMT</pubDate>
    <dc:creator>ytcaudience</dc:creator>
    <dc:date>2023-04-15T00:00:59Z</dc:date>
    <item>
      <title>CLI error: is server running on host and acceptingTCP/IP connections on port 5432?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-error-is-server-running-on-host-and-acceptingTCP-IP/m-p/869929#M343624</link>
      <description>&lt;P&gt;Whenever I run the following line of code in SAS Studio:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname test1 postgres server="192.xxx.xx.xxx" port=5432&lt;BR /&gt;user=postgres password='postgres' database=mydb;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;ERROR: CLI error trying to establish connection: could not connect to server: Connection timed outIs the server running on host&lt;/DIV&gt;&lt;DIV class=""&gt;"192.xxx.xx.xxx" and acceptingTCP/IP connections on port 5432?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Note: I can access the database server&amp;nbsp;"192.xxx.xx.xxx" from a pgadmin UI on machines other than&amp;nbsp;"192.xxx.xx.xxx".&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I can ping to&amp;nbsp;"192.xxx.xx.xxx".&lt;/DIV&gt;&lt;DIV class=""&gt;This connects perfectly well from any machine:&lt;/DIV&gt;&lt;DIV class=""&gt;psql -h&amp;nbsp;192.xxx.xx.xxx -U postgres -d postgres&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;This also works from any machine:&lt;/DIV&gt;&lt;DIV class=""&gt;telnet&amp;nbsp;192.xxx.xx.xxx 5432&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Please help.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 00:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-error-is-server-running-on-host-and-acceptingTCP-IP/m-p/869929#M343624</guid>
      <dc:creator>ytcaudience</dc:creator>
      <dc:date>2023-04-15T00:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: CLI error: is server running on host and acceptingTCP/IP connections on port 5432?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-error-is-server-running-on-host-and-acceptingTCP-IP/m-p/869931#M343626</link>
      <description>&lt;P&gt;It is port 5432 on your SAS Compute server that needs to be checked. Try your PSQL command while remotely logged onto this server.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 01:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-error-is-server-running-on-host-and-acceptingTCP-IP/m-p/869931#M343626</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-04-15T01:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: CLI error: is server running on host and acceptingTCP/IP connections on port 5432?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-error-is-server-running-on-host-and-acceptingTCP-IP/m-p/870186#M343716</link>
      <description>&lt;P&gt;Thank you for your help&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual problem was that the &lt;SPAN&gt;&lt;SPAN class=""&gt;192.xxx.xx.xxx address is not reachable from the&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;SAS Studio compute server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution was that I had to ping my hostname and it revealed the&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;SAS net ip address ("xxx.xxx.xx.xxx") and when I replaced my local server's ip (192.xxx.xx.xxx) with this new SAS net ip address, it WORKED!!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;libname test1 postgres server="xxx.xxx.xx.xxx" port=5432&lt;BR /&gt;user=postgres password='postgres' database=mydb;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 15:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-error-is-server-running-on-host-and-acceptingTCP-IP/m-p/870186#M343716</guid>
      <dc:creator>ytcaudience</dc:creator>
      <dc:date>2023-04-17T15:11:28Z</dc:date>
    </item>
  </channel>
</rss>

