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

1 vue (au cours des 30 derniers jours)
louise
louise le 14 Mar 2012
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

Réponses (1)

Abhinav
Abhinav le 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.

Catégories

En savoir plus sur MATLAB Parallel Server dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by