Re: Publish/Subscribe problem over internet
Steve Magoun <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
You don't say which connector you're using on the client (sounds like HTTP though). I believe that given the network topology you describe, only the TCP connector will work. As you seem to have discovered, when using the HTTP connector the server will attempt to open a connection back to the client. That doesn't work if the client's behind a firewall or NAT router. Make sure you're using the TCP connector from the client, you should be able to establish a connection. If, however, the client is behind a firewall that only allows outbound traffic on port 80, you're out of luck. According to a post on this list from 12/04, there's a new HTTP connector coming that won't need to open a connection back to the client. I don't know what the timeframe for that release is: <http://sourceforge.net/mailarchive/ forum.php?thread_id=6130855&forum_id=11794> Steve On Tuesday, March 8, 2005, at 04:56 PM, chris lau wrote: > Okay, converted the command line chat program to an > applet and i tried with IE, but still the same > problem. I was hoping that magically something would > fix itself and work ;-) But no luck today. > > Please heelllllp! > > --- chris lau <ckl_88-FFYn/[email protected]> wrote: >> I got a server setup with Tomcat and OpenJMS on a >> win2000 machine. I setup the openjms config file to >> use HTTP, TCP and RMI. Downloaded a sample chat >> program which publishes and subscribes to the same >> topic to get the desired effect. I played around >> with >> it and finally got it working on the localhost where >> the server is running. Awesome! >> >> Then I decided to try this over the internet using >> my >> work computer as the client and home computer as the >> server. >> WC=work computer (client) >> HC=home computer (server) >> Router=a router which has NAT capabilities >> >> WC <-> Router <-> internet <-> Router <-> HC >> >> When I ran the chat program from a DOS prompt (as it >> only runs in command line mode), it started normally >> and waited for user input. When typed something in >> and >> pressed return, the openjms server dumped a >> JMSException exception in the tomcat log file. I >> examine it and basically said it couldn't connect to >> the client. It included the clients IP address and >> port. When I looked at the IP address, it is the >> internal IP address of the client behind it's NAT... >> thus it was trying to the connect to the client >> using >> 192.168.219.x:port. >> >> I don't know if the problem lies with the server >> configuration or the source code of the chat program >> but if anyone could direct me in the right >> direction, >> it would be appreciated! >> >> >> >> > ______________________________________________________________________ >> >> Post your free ad now! http://personals.yahoo.ca >> >> >> > ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT >> Products from real users. >> Discover which products truly live up to the hype. >> Start reading now. >> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> openjms-user mailing list >> [email protected] >> > https://lists.sourceforge.net/lists/listinfo/openjms-user >> > > ______________________________________________________________________ > Post your free ad now! http://personals.yahoo.ca > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click