Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 4202 invoked from network); 17 Mar 2010 20:53:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 20:53:20 -0000 Received: (qmail 54106 invoked by uid 500); 17 Mar 2010 20:53:20 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 54084 invoked by uid 500); 17 Mar 2010 20:53:20 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 54075 invoked by uid 99); 17 Mar 2010 20:53:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 20:53:20 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bruce.snyder@gmail.com designates 209.85.220.210 as permitted sender) Received: from [209.85.220.210] (HELO mail-fx0-f210.google.com) (209.85.220.210) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 20:53:14 +0000 Received: by fxm2 with SMTP id 2so1173659fxm.6 for ; Wed, 17 Mar 2010 13:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=dQrpFqaCq5ODQVsel4pWnfYzHJ6StbuksWIOOG7EFEE=; b=oXwq9t6t5lYtllrkPHcplty2Vp2KcwCvTB7MmLZOLR0ov1cbuUQZRZ0gsOtpRl+uec xdB9YMAcqBKKL217WlLUgZfXAQ/5BzVezamtPIT3vbk6nC7qfxRWEtUiXxc6xjpiEKvU m4kpArrbm/WvFsUOieq7dRZ/pPUVJyfuRJV6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=aGb2ihsZRrCpQl3D4e3X2ru0cqVRbZr7L/0POaZzZI862uRUy7mEAZ/gaUF8lDfCkY auyF4ZPi3N1hGK0UqO42MxIxynaY4gMN6tvrfw89/SbwhI51XUuyhJcIUU580wL1iQwj maI36t8RcLpIR5jO+AvSug/NNCKWlJ/c9AJyU= MIME-Version: 1.0 Received: by 10.223.77.136 with SMTP id g8mr8209964fak.10.1268859168808; Wed, 17 Mar 2010 13:52:48 -0700 (PDT) In-Reply-To: <27937799.post@talk.nabble.com> References: <27937799.post@talk.nabble.com> Date: Wed, 17 Mar 2010 14:52:48 -0600 Message-ID: <7b3355cb1003171352mf9531c1i474ea6004bc09e29@mail.gmail.com> Subject: Re: Not able to connect to ActiveMQ running on EC2 Instance remotely From: Bruce Snyder To: dev@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Mar 17, 2010 at 2:35 PM, Justin Hoang wrote: > > I am trying to connect to my ActiveMQ running on EC2 Instance remotely an= d > not able to. > > I have opened TCP port for 8161 and 61616 for ActiveMQ on my Instance > Security Group. > I am not able to access the ActiveMQ admin console for this instance > remotely neither. > > I wonder if any one ran into similar problem with EC2. =A0Any advice or > suggestion is greatly appreciated. 1) Use netstat from the EC2 side to see if ActiveMQ did indeed open a port. Below is an example: $ netstat -an | grep 61616 tcp4 0 0 *.61616 *.* LISTEN 2) If the port is open, you should be able to telnet to it and see something like the following: $ telnet localhost 61616 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. =D9ActiveMQTightEncodingEnabled CacheSizeTcpNoDelayEnabledSizePrefixDisabledStackTraceEnabled MaxInactivityDurationInitalDelay'MaxInactivityDurationu0 CacheEnabled This tells you that it is accepting connections from inside the EC2 instance. The next step is to test this port from outside the EC2 instance. Can you telnet to the the EC2 public IP address and port 61616? If so, what kind of response do you receive? Bruce --=20 perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=3D6-E+G-N>61E