in reply to Problem in socket
STDOUT may be opened, but not selected, maybe try print STDOUT "New Client Connected\n" ;