Questions on underlying port restrictions in nccl/gloo communication

I saw this init_method=“tcp://10.0.0.1:8888” in some other posts (link). Will something like that work?