Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 59951 invoked from network); 20 Jan 2010 19:47:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 19:47:57 -0000 Received: (qmail 30421 invoked by uid 500); 20 Jan 2010 19:47:54 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 30390 invoked by uid 500); 20 Jan 2010 19:47:54 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 30318 invoked by uid 99); 20 Jan 2010 19:47:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 19:47:54 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.218.215 as permitted sender) Received: from [209.85.218.215] (HELO mail-bw0-f215.google.com) (209.85.218.215) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 19:47:45 +0000 Received: by bwz7 with SMTP id 7so1670512bwz.6 for ; Wed, 20 Jan 2010 11:47:24 -0800 (PST) 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; bh=xTkhkq3U+jA6cDPn8GMeLPZNd50UgFSCjjGAvXGu2aI=; b=A7oe67RWdURd7UanpbXjzHu6H8w2BR/Z0yxOrMVFkgUAGgUdcimtsmEsGFI0gf0rSG gHYXslVdQhRds+3M0k/4OQY1zYcEN//wu8jCidwiKAD+x92cZZ6ZFmc6KjADTN8rNNMv 5XXLbWeDhe38XlY3bm1CnzMBfdI6D7vbBRn6k= 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; b=N+ZaurmgcqLkojr0g7ONbYsDSqgo02lbmb15WczYXqL8rAfiKh/6CK/Qm4e0jrBRLt qac0zq8kPMNUYQ0sHvvLyqMhlY/lf03HOkfg8mKye6dE9Z7U7JfbWnR/5Govzgbh+nzP zgLGfdGhbCFaVMih0aep1oxz7+t/bHyiLXkz8= MIME-Version: 1.0 Received: by 10.204.5.82 with SMTP id 18mr216548bku.166.1264016842584; Wed, 20 Jan 2010 11:47:22 -0800 (PST) In-Reply-To: <27247367.post@talk.nabble.com> References: <27247367.post@talk.nabble.com> Date: Wed, 20 Jan 2010 19:47:22 +0000 Message-ID: <3a73c17c1001201147q143c9dbfu1d25da341d13a46@mail.gmail.com> Subject: Re: Could not connect starting broker as localhost. From: Gary Tully To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=00151758a6a4e4723a047d9dda2b --00151758a6a4e4723a047d9dda2b Content-Type: text/plain; charset=ISO-8859-1 localhost binds to the loopback address, an interface that is local to a host. You can bind to a particular IP address or all interfaces with the wildcard address 0.0.0.0 For more detail see: https://issues.apache.org/activemq/browse/AMQ-2094 2010/1/20 JPfernandes > > Im using activeMQ and starting my server broker like: > //---------------------------------------------------------------- > BrokerService broker = new BrokerService(); > broker.addConnector("tcp://localhost:61616"); > broker.start(); > > why when i try to connect to my server using: > connectionFactory = new ActiveMQConnectionFactory( > "tcp://192.168.0.4:61616"); > > javax.jms.JMSException: Could not connect to broker URL: > tcp://192.168.0.4:61616. Reason: java.net.ConnectException: Connction > refused > > and if i start the server broker with IP instead of 'localhost' it works > well ? > > Thanks, JP > -- > View this message in context: > http://old.nabble.com/Could-not-connect-starting-broker-as-localhost.-tp27247367p27247367.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com --00151758a6a4e4723a047d9dda2b--