There are many ways in which a micro controller can talk to a different micro controller, There is the wire communication, wifi, bluetooth, bluetooth low energy, radio waves, among others. Each type of communication has it's own way of working, for example the wire communication (I2C) is physically with wires, the wifi is by IP direction, each micro controller has to have a different and unique IP, The bluetooth