Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
louise
louise am 14 Mär. 2012
Beantwortet: Abhinav am 16 Jan. 2023
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

Antworten (1)

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

Kategorien

Mehr zu Install Products finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by