How to deploy example in webserver

I published XIFFExample.fla via macromedia flash professional v 8 at local disk and run in from IE. It’'s OK

But when I copy XIFFExample.swf and XIFFExample.html to tomcat server and use same IE to browse that page,

It cann’'t connect to My Old IMServer How do I correct this problem ?

No error occur I can use

connection.connect(“flash”);/* connection = new XMPPConnection();*/