communication with different ports