I'll reply to your PM in here as it's not a secret

The ybd.exe and xbd.exe files
are the MAME executables in this case. The text files are just examples from posts above in this thread, containing examples of a batch file that uses command lines to launch four linked instances of MAME on one PC. Note the way that among the instances the local ports are unique and the remote ports go in a ring 1 > 2 >3 >4 >1
@echo off
start ybd.exe pdriftl -cfg_directory cfg1 -nvram_directory nvram1 -comm_localport 15112 -comm_remoteport 15113 %1 %2 %3
start ybd.exe pdriftl -cfg_directory cfg2 -nvram_directory nvram2 -comm_localport 15113 -comm_remoteport 15114 %1 %2 %3
start ybd.exe pdriftl -cfg_directory cfg3 -nvram_directory nvram3 -comm_localport 15114 -comm_remoteport 15115 %1 %2 %3
start ybd.exe pdriftl -cfg_directory cfg4 -nvram_directory nvram4 -comm_localport 15115 -comm_remoteport 15112 %1 %2 %3
For separate PC's, each must have it's own unique IP in the same subnet. You don't need to adjust the ports, they should all be 15112 or whatever, but the IP's must go in a ring 1 > 2 > 3 > 4 > 1. That's for 4 PC's, but you can do only two if you wish. And you can mix and match, so, two instances on one PC, and one more on a second PC. Just adjust the ports/IPs to go in a ring.
I'm not sure what the commandline parameter is for the IP addresses but i imagine it's reflected below. I use the mame.ini or game.ini files (where game is the romname like smgp.ini or pdriftl.ini) which this snippet is from
#
# CORE COMM OPTIONS
#
comm_localhost 0.0.0.0
comm_localport 15112
comm_remotehost 192.168.1.101
comm_remoteport 15112
comm_framesync 0
My two PC's are 192.168.1.100 and 192.168.1.101. Each ini lists the next IP in the ring as the remotehost, with the last pointing back to the first.