Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha4ih-0003ku-20 for pgsql-general@arkaria.postgresql.org; Sun, 09 Jun 2019 20:47:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ha4if-00043Q-00 for pgsql-general@arkaria.postgresql.org; Sun, 09 Jun 2019 20:47:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha4ie-0003zI-I3 for pgsql-general@lists.postgresql.org; Sun, 09 Jun 2019 20:47:12 +0000 Received: from srv01.teladesign.ie ([2001:41c9:1:41d::10]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha4iX-0001cB-Tj for pgsql-general@postgresql.org; Sun, 09 Jun 2019 20:47:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rodonnell.ie; s=exim; h=Subject:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pIMB2ZFYI4KVfgd63jzaiETYMuzlz6vOUYZ+vIitiHA=; b=MOl4+D4ftfXWezQEUNwSX1iuxF Jqvv6RzKlQuQ3i8TQIG8ndVK5KVmmroMkyaPOblTC1/WWMD72WQGXWaMGPazflLPMIn2aNgqp+4kK RnQb6B+Tp/3sdCwvEfno+E9xrOmFMqfZeq9M7x50H5TTJa2lnQyexVybajvj/P5B6cyM=; Received: from [89.127.18.233] (helo=[192.168.15.223]) by srv01.teladesign.ie with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1ha4iS-0004lb-18; Sun, 09 Jun 2019 21:47:02 +0100 To: Sourav Majumdar Cc: pgsql-general@postgresql.org References: <669cf8ed-877e-4420-3b60-f4e112ad8208@rodonnell.ie> From: Ray O'Donnell Message-ID: <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie> Date: Sun, 9 Jun 2019 21:46:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 89.127.18.233 X-SA-Exim-Mail-From: ray@rodonnell.ie Subject: Re: Connection refused (0x0000274D/10061) X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: No (on srv01.teladesign.ie); Unknown failure List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 09/06/2019 20:49, Sourav Majumdar wrote: > Hello, > Thanks for your quick response. I am new to pgsql, didnot configured it > , can you please give a guidance for that? I will be highly oblised if > you can assist me. > I am using windows 8.1, 64 bit. > ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32] > Rails 5.2.3 > Trying to setup ruby on rails on my local host Hi, PostgreSQL's default port is 5432, and if the Postgres instance on your computer is the only one there then that's what it'll be listening on. I don't know anything about Ruby or how you connect to PG from it, but you need to tell it to use port 5432. Alternatively, if you really want to use port 3000, then you need to edit postgresql.conf and change the "port" setting there. You'll need to restart PG for this to take effect. Either way, you need to connect to the port on which PG is listening. Ray. -- Raymond O'Donnell // Galway // Ireland ray@rodonnell.ie