If you read the reference code again you will see this:
// Connect to the local machine at port 5204.
// This example will not run if you haven't
// previously started a server on this port.
myClient = new Client(this, "127.0.0.1", 5204);
You have to fire up the Server first using the same port. If you use the Reference example for Server and run that code first then fire up the Client example you should see numbers other than all zeroes. Not sure how you would connect to Pastebin.