To allow external gadgets when the server is behind a proxy, add the following code to the beginning of the JVM:
-Dhttp.proxyHost=proxyhostURL -Dhttp.proxyPort=proxyPortNumber -Dhttp.proxyUser=someUserName -Dhttp.proxyPassword=somePassword