To dialog with my Mac, I use SSH (paramiko) and I connect to the computer name of the Mac which does not have a fixed ip (dhcp)