title: VBScript/JScript Networking: Connect either UDP or TCP
body: <p>How can I use a stand-alone VBScript or JScript file to connect to a port on localhost, either UDP or TCP (preferable UDP)? I need to send a command to a certain port on localhost. The command is small and there will not be any packet loss to localhost (even if there was, it would not be that bad), that is why UDP would work great, just send a packet.</p>
  
  <p>But at the moment I am having a hard time finding any examples on VBScript or JScript networking.</p>
  
  <p>I don't care about anything before Windows XP.</p>