Note that there are some explanatory texts on larger screens.

plurals
  1. POForefront TMG vs java and php (ftp)
    primarykey
    data
    text
    <p>I've got a computer behind ForeFront TMG 7.0 and public remote ftp server. TMG client is installed. Windows firewall is off. Antivirus: McAfee virus scan Enterprise (8.8) + AntySpyware Enterprize (8.8) + No addons. Antivirus was tested on and off.</p> <p>It fails to connect to the server via Java and Php. Filezilla, explorer.exe and Go-written program connects without problems.</p> <p>For Java I get ConnectionRefused error:</p> <pre><code>java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at org.apache.commons.net.SocketClient.connect(SocketClient.java:182) at org.apache.commons.net.SocketClient.connect(SocketClient.java:203) </code></pre> <p>No matter how I'm trying to connect via Java:</p> <ul> <li>Apache FTP Client (active/passive - local/remote/both)</li> <li>Apache FTPS Client (all varians active|passive)</li> <li>Sauron FTP Client (same)</li> <li>Socket socket = new Socket(host, 21);</li> </ul> <p>Semetimes it trows connection timeout after 5 minutes of waiting. And the error is timeout exception. All varians are tested with direct connection, global proxy, ftp proxy, http proxy and all combinations of that. All variants are tested both by IP and hostname.</p> <p>Php-code sample that can not connect too:</p> <pre><code>&lt;?php $host = "ftphost"; $connect = ftp_connect($host,21); if(!$connect) { echo("Error: $host"); exit; } else { echo("Cheers: $host"); } ?&gt; </code></pre> <p>But filezilla connects without a problem. Explorer connects without a problem. Go-written progam connects without a problem.</p> <p>Any ideas what can block java and php? How can I figure out the policy or the program settings that are blocking JRE and Apache?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload