You can find all the "chain parameters" in
chainparams.cpp file. The magic is called pchMessageStart and is found on lines 286-289
Is there something else I have to consider when communication with a regtest node?.
I'm curious about this too. I believe you have to use each node on a different port if they are on the same machine (eg. one on 18444 another on 18445).