Check if the port for torchrun is open via ncat: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

23 October 2025

  • curprev 14:3514:35, 23 October 2025 Davrot talk contribs 694 bytes +694 Created page with "Questions to [mailto:davrot@uni-bremen.de David Rotermund] This is my script (connection_test.sh) that tests if a connection between two computer of a given port is possible: You need the master_ip and master_port:<syntaxhighlight lang="shell">master_ip="10.10.10.10" master_port="40001" python_file="main.py" ip_check=`ip addr | grep $master_ip | wc -l` if $ip_check == "1" then echo "Master" echo "OK OK OK OK OK OK OK" | ncat -l -p $master_port else..." Tag: Visual edit