There is another app that write raw wav file on this socket.The client can starts and listen the song is currently running.\[code\]Socket clientSocket = new Socket("localhost", 9595);AudioInputStream stream = AudioSystem.getAudioInputStream(clientSocket.getInputStream());\[/code\]\[quote\] I get javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream Doc about AudioSystem.getAudioInputStream: "Obtains an audio input stream from the provided input stream. The stream must point to valid audio file data." \[/quote\]How to play sound from tcp stream? Considering the client could not start listening from beginig of the music.