Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qMVu7-002a0R-C5 for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Jul 2023 15:49:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qMVu5-00BAWJ-Dx for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Jul 2023 15:49:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qMV79-009vTk-C1 for pgsql-bugs@lists.postgresql.org; Thu, 20 Jul 2023 14:58:47 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qMV75-000fVn-I0 for pgsql-bugs@lists.postgresql.org; Thu, 20 Jul 2023 14:58:46 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-577ddda6ab1so14404387b3.0 for ; Thu, 20 Jul 2023 07:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689865122; x=1690469922; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=okTLxlnujRNuwjyo6GQPMOz6H2pz+ZkhZ2g4PrriUDU=; b=PBjCW5O0pIOh2CT3L4IUm9Dt7D1rTxGN2O3BJPjafthVB4jQ1FVO5x7csRno/BbyUR C8pAtX6K9SGe17yUmtJF62D4qCJyhdNZUx/PlnG1B0SHN0qRau8meffp+/iCvelgBg7+ HbhMx7/4ERMTkF5Zq9U70sDJXex0sEHtKapYorpMcS14JnB2BqvAIWxUBzZ4ND23scxr hCsXqFI42EDJGJLfsYbZna037PD6sdCO9SodQWwJhFcN3ncLDfA+L/wg9kZWab2zxI4F 9DPnmvHdmNSkNabAsS3qU1qwi1+yWTSFI9M8feDYVirrsX80Es215ZGnO0z17tW9UxOF JDuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689865122; x=1690469922; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=okTLxlnujRNuwjyo6GQPMOz6H2pz+ZkhZ2g4PrriUDU=; b=cRFsPa1EiVQybpNzNgPdM0TBmxrR3rirlwKXUu3JDumPn0juSH9fN2BU1xFmpe4w6+ tKssMO0ibbIB9Mebqx3063CmpUvU67yQtJ7LvGjRt89b0oSepHDMRn9jlL5fqmUMNjAz SSOgzyi7qCfLqQrOKIRY8IaJZ3LxBj93VmShKY0xJNmkFO/kqOqiP66Ix9yEBBJl8m4q BqDEhnl0arit13NssxfwdZNSzEl3AdmX6juVDvLaR8MJvc7vFAqCwBgvnQjIiqdB4Mfj BENVXF6A63P0YbJGR1dSj3uPTg4HYPVQR2hspyu5mzFt7CotiLg0r+7XuTWBWbyZTi2m fDww== X-Gm-Message-State: ABy/qLZ17kJNNPXicHuRFoWAH/toMmZyr+MswZtYwBeVOQpyeZDzIRL8 oM2YlDZBNqk3sfGZuootRIGNJVXMVPyvkw== X-Google-Smtp-Source: APBJJlEQjXNTNHNM0pAr3tJ4X3ZznKI4v7YXm/C11iNo8b96W/qR2eiuW3Ua7+eIo500T1hilpW8Aw== X-Received: by 2002:a81:91c9:0:b0:577:3f8c:fc60 with SMTP id i192-20020a8191c9000000b005773f8cfc60mr5777608ywg.1.1689865122239; Thu, 20 Jul 2023 07:58:42 -0700 (PDT) Received: from smtpclient.apple ([2601:346:1180:3ae1:4ca8:19d5:f62f:a026]) by smtp.gmail.com with ESMTPSA id i198-20020a816dcf000000b005774338d039sm248298ywc.96.2023.07.20.07.58.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jul 2023 07:58:41 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Shashanth Reddy Mime-Version: 1.0 (1.0) Subject: Re: BUG #18033: org.postgresql.util.PSQLException: Date: Thu, 20 Jul 2023 10:58:31 -0400 Message-Id: References: Cc: pgsql-bugs@lists.postgresql.org In-Reply-To: To: Daniel Gustafsson X-Mailer: iPhone Mail (20F75) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Can you help me with yhe process on how to know the list of ports available f= or that postgres server as am not able to connect using many combinations Sent from my iPhone > On Jul 20, 2023, at 4:47 AM, Daniel Gustafsson wrote: >=20 > =EF=BB=BF >>=20 >>> On 20 Jul 2023, at 05:11, PG Bug reporting form = wrote: >>=20 >> org.postgresql.util.PSQLException: Connection to localhost:5436 refused. >> Check that the hostname and port are correct and that the postmaster is >> accepting TCP/IP connections. AM facing this issue while trying to connec= t >> to Postgres from my java code. Can you please suggest me the way to get t= he >> list of ports that ara avialble for me to use? >=20 > You need to connect to the port which PostgreSQL was configured to listen t= o, > which in the default case is 5432. If you are unable to connect, make sur= e > that the database is configured for that port, that the database is runnin= g, > that you are connecting to the right host and that there are no firewall r= ules > or similar which may block access to that port. >=20 > This is unlikely to be a bug in postgres, so you should take this question= to a > more appropriate mailinglist like pgsql-general. See the mailinglist page= for > more info: >=20 > https://www.postgresql.org/list/ >=20 > -- > Daniel Gustafsson >=20