Results 1 to 3 of 3

Thread: How can i use .vbs script for peer to peer connection

  1. #1
    Join Date
    Jan 2009
    Posts
    124

    How can i use .vbs script for peer to peer connection

    I would like to know that how do i use .vbs script to test the connection between 2 computers having a peer to peer connection. Does any body knows about it? Kindly provide me the correct logical solution for the above issue. Any kind of help on the above issue would be appreciated.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How can i use .vbs script for peer to peer connection

    Create a form and add 1 Button, 1 TextBox, and 1 Timer. Make the textbox big enough to type in. For the timer set the interval property in the properties box to 1 and the enabled property to True. Now let's take a look at those codes. Bring up the Code window for Form 1. We are going to need to import a few namespaces in the area before Public Class Form1.

    Imports System.Net.Sockets
    Imports System.Threading
    Imports System.IO

    Public Class Form1
    The System.Net.Sockets namespace will allow us to make and listen to connections from and with other users.
    The System.Threading namespace will allow us to do several things at the same time without interfering with one another
    The System.IO namespace will allow us to send and receive information over our connection

    Next we will need a few variables.

    Dim Listener As New TcpListener(65535)
    Dim Client As New TcpClient
    Dim Message As String = ""

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: How can i use .vbs script for peer to peer connection

    You can modify this script to do whatever you need. Notice that I've commented out some lines (') that give more information about the ping attempt, but you can leave the lines in if the information would be useful to you. Run the script by using the following command:

    D:\projects\VBScripts>cscript v***ng.vbs savdalex01
    which will give the following sample output:
    Host savdalex01 contacted

Similar Threads

  1. Cannot install a peer to peer network printer in windows 7
    By Rooney W in forum Hardware Peripherals
    Replies: 5
    Last Post: 02-06-2011, 10:29 PM
  2. Ad hoc mode of Peer to peer wireless network in windows 7
    By Kim|ball in forum Networking & Security
    Replies: 6
    Last Post: 09-05-2011, 10:12 AM
  3. Netgear WNDR3700PPTP drops connection under peer to peer load
    By GOOL in forum Networking & Security
    Replies: 4
    Last Post: 17-12-2010, 06:56 AM
  4. Issue with peer to peer bittorrent client
    By Tarank in forum Networking & Security
    Replies: 6
    Last Post: 23-11-2010, 07:27 AM
  5. DHT, Local Peer Discovery, and Peer Exchange..Not allowed?
    By OLIVER d'souza in forum Networking & Security
    Replies: 5
    Last Post: 25-06-2010, 05:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,932,560.62229 seconds with 16 queries