Matlab Parallel Computing - Firewall Configuration
12 views (last 30 days)
Hi, I am not able to properly configure the firewall setting for the parallel computing cluster.
I have 2 servers. I installed mdce on both servers and added the mdce service to the firewall setting. The service runs fine on both servers.
However the mdce service is not reachable remotely, unless i turn off the firewall.
I get the following error when I run the function "nodestatus -remotehost server1"
java.lang.Exception: An error occurred while connecting to the mdce service on the host SERVER1.
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
... 2 more
java.lang.Exception: An error occurred while connecting to the mdce service on the host server1.
The cause of this problem is:
java.net.SocketTimeoutException: connect timed out
Script nodestatus unable to complete successfully - exiting
Any thoughts on how to fix this? I don't want to have the firewall turned off.
Jason Ross on 10 Sep 2012
Try out the steps in this solution, opening the ports as indicated. I've set it up several times on Windows and Linux and know it does work with a firewall.
Lee White on 4 Apr 2013
I had also noticed Windows Firewall on Windows 7 64-bit was blocking my MDCS cluster from communicating. Specifically the admincenter listed my hosts as reachable but unavailable under status. I added the range of TCP ports 27350 to 29350 for incoming connections and the problem was solved.
Control Panel > Windows Firewall > Advanced Settings > incoming connection > new rule > allow TCP port range > Save
I would add some more documentation to the MDCS setup guides for other users will certainly experience this same problem. Furthermore, since the windows firewall configuration utility succeeded I was lead down the wrong path thinking it couldn't therefore be the firewall.
Matlab R2011a MDCS 5.1 Windows 7 64 bit across all computers.