1 Reply Latest reply on Dec 27, 2011 1:45 AM by cjw_pisces

    Socket Connect refused when change localhost to ipaddress

    cjw_pisces

      Hi,all

       

             I run the Stomp appliaction in the linux.  The linux ip is 192.168.188.26

       

             when I modify the StompExample.java

      from

       

         // Step 1. Create a TCP socket to connect to the Stomp port

          Socket socket = new Socket("localhost", 61613);

       

      to

       

      Socket socket = new Socket("192.168.188.26", 61613);\

       

      The socket connection refused.

       

      Who know the reason ?

       

      Thanks

      william