in reply to sockets: problems with daytime client

Um, "connection refused" is showing that it works, you're simply not welcome.
  • Comment on Re: sockets: problems with daytime client

Replies are listed 'Best First'.
Re^2: sockets: problems with daytime client
by 7stud (Deacon) on Jan 20, 2010 at 10:01 UTC
    It's my computer, and I have full admin privileges, so I would like to welcome my script with open arms.
      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.
      You are at your home, and ask Bob for the time. There is no response, and a light bulb goes off in your head saying "Connection refused". Being at home, you have full admin privileges, but that means nothing to Bob. Is bob even in your house?