The diff is failing. Why? Could it be 'nc'?  Switch to 'netcat'.