Can't open port on a cluster using Parallel Computing Toolbox
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Abhinav
2023-1-16
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Install Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!