So you are connecting to your own machine and asking for information from daytime. In that case, you need to be running a daytime service. 'Connection refused' means any of several things, including that there is nothing listening on the port that you connected to (or, per AM's comment, that you are being blocked or ...). OS X does not provide such a service by default. IOW, you also need to find code for a daytime service (or write your own) that listens on port 13.
in reply to Re^2: sockets: problems with daytime client
in thread sockets: problems with daytime client