>Yeah, netcat would be fun. Although, it seems that it also straces (or similar?) the app it tests.
Ah yes, I forgot this little detail. I wonder if you can get it to work on the local machine first, but talking throught a socket instead of stdin.
Then, pipe the result throught netcat !