PDA

View Full Version : Accessing image through a firewall


Peter_Chea
01-23-2004, 11:18 AM
Hi, I have dsl router with port 8080 forwarding to a server run a laszlo 2.0 app. I can access that application from outside with no problem except that the dynamicly loaded images doesn't load.
Somehow the image loaded using setSource doesn't show but the images load using the resource tag is ok and the external dataset loaded is ok
Anyone know what could be wrong?
Here is the stack trace:

No route to host : Exception stack: java.net.NoRouteToHostException: No route to host at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.<init>(Socket.java:291) at java.net.Socket.<init>(Socket.java:119) at org.apache.commons.httpclient.protocol.DefaultProt ocolSocketFactory.createSocket(DefaultProtocolSock etFactory.java:105) at org.apache.commons.httpclient.HttpConnection$1.doi t(HttpConnection.java:671) at org.apache.commons.httpclient.HttpConnection$Socke tTask.run(HttpConnection.java:1275) at java.lang.Thread.run(Thread.java:536)

antun
01-23-2004, 01:41 PM
Where do the images that you are loading with setSource live? On that same server? If so, can you browse to them over HTTP from that server?

-Antun

Peter_Chea
01-23-2004, 03:23 PM
Yes it is in the same server. And I can browse using a browser. I will sent you links.