<DIV>When i used java client connect to a broker server, i got a error like this:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Exception in thread "main" com.rabbitmq.client.PossibleAuthenticationFailureException: Possibly caused by authentication failure<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:288)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:379)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:399)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java_receive.main(java_receive.java:14)<BR>Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.io.EOFException<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:81)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:47)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:342)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:215)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:286)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 3 more<BR>Caused by: java.io.EOFException<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:118)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:155)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:393)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:421)</DIV>
<DIV>&nbsp;</DIV>
<DIV>the code</DIV>
<DIV>&nbsp;&nbsp;Connection conn = null;<BR>&nbsp;&nbsp;conn = factory.newConnection();</DIV>
<DIV>&nbsp; factory.setHost("192.168.0.202");&nbsp; //local ip address<BR>&nbsp;&nbsp;Channel chan = conn.createChannel(); //error here</DIV>
<DIV>&nbsp;</DIV>
<DIV>if i use setHost("localhost"), it's ok.&nbsp; someone can tell why?</DIV>