Can't open port on a cluster using Parallel Computing Toolbox

1 view (last 30 days)
Hello!
I'm using an Altix cluster with the Parallel Computing Toolbox and Distributed Computing Server, under a Matlab job manager configuration.
I'm trying to open a TCP connection between the cluster and a PC.
According to the admins, all the relevant firewalls have been opened.
This is the code that I'm running on the cluster:
t=tcpip('hostname',7708,'NetworkRole','Server');
set(t,'Timeout',160);
fopen(t);
This uses the tcpip function from the Instrument Control Toolbox. fopen should block for 160 seconds or until the PC at 'hostname' (which of course is filled in) responds (calls fopen). I've tested this between two PCs.
Instead, fopen errors instantly with the message
Unsuccessful open: Unrecognized Windows Sockets error: 0:JVM_Bind
Any idea what could be happening? :)
Thanks!
Louise

Answers (1)

Abhinav
Abhinav on 16 Jan 2023
Hi Louise
This problem occurs on some Windows systems that have the IPv6 TCP Stack installed. If both IPv4 and IPv6 are installed on the computer, the Java Virtual Machine (JVM) may have problems closing or opening sockets at the operating system level.
Add the following JVM option: -Djava.net.preferIPv4Stack=true
This issue occurs on Windows 7 and Windows 2008 systems which have both IPv4 and IPv6 stacks installed by default.

Categories

Find more on MATLAB Parallel Server in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!