TCP server/client while in the listening mode

Is it possible to use the TCP server/client while in the listening mode? If yes, could anyone advice how to do so? I want to have local connection between Photon and a mobile phone. Thank you.