Need advice using 2 Mega2560s on one PC

Are you using UDP and if so, does it let you specify one target IP only?