Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6184713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:35:02+00:00 2026-05-24T01:35:02+00:00

How can I use a stand-alone VBScript or JScript file to connect to a

  • 0

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.

But at the moment I am having a hard time finding any examples on VBScript or JScript networking.

I don’t care about anything before Windows XP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:35:03+00:00Added an answer on May 24, 2026 at 1:35 am

    VBScript and JScript do not natively have the ability to directly use Sockets. What these languages do allow you to do is to interact with ActiveX/COM objects that have the ability to use Sockets.

    For example, you can use MSXML2.XMLHTTP to talk to an HTTP/HTTPS server.

    Dim objHTTP
    Set objHTTP = CreateObject("MSXML2.XMLHTTP")
    objHTTP.open "GET", "http://www.google.com", false
    objHTTP.send 
    WScript.Echo objHTTP.responseText
    

    Now, the real question. Does Windows have an ActiveX/COM object for interacting with raw Sockets? The short answer here is No, but you do have alternatives.

    • There is a “Winsock ActiveX” library named mswinsck.ocx that comes with very old versions of Visual Studio (version 6 and earlier). Although, getting this library to work will be kind of tricky as it was meant to be used from Visual Basic and not VBScript.

    • You can purchase one from a 3rd party

    • You can write your own. This may be more trouble than it is worth, though. You’ll be stepping so far outside of VBScript that it would be simpler to give up on VBScript and write a proper program for doing this.

    • You can switch to a more verbose language such as ActiveState Perl or Python. Both have native support for sockets, but again, this might be outside of your comfort zone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a stand-alone Pie Chart which I can use in a GWT
Which programming language and tools can i use, to develope a complete stand-alone gui-application?
I am trying to write a stand alone Class that can be imported. As
According to its feature list Quartz can run as a stand-alone program (within its
Is there anywhere I can download the stand-alone JSEclipse plugin, it seems like it
I have a requirement to create a component which can be used stand-alone or
I use spring in a stand alone web application, which means there's no servlet
We have a situation where we use JSR-330 based injections to configure our stand-alone
How can we use Visual Source Safe plug-in in standalone Aptana installment. People say
You can use more than one css class in an HTML tag in current

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.