Results 1 to 5 of 5

Thread: How to use it?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Question

    Hi!

    I want to know a simple thing:
    How do I use exactly the WinSock OCX in
    VB?
    I know there is Conect, GetData and SendData
    methods but I don't know how to use them.
    Can anyone explain me?

    Thank you,
    Arie.

    Visit: http://www.nip.to/camel2000

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Ok... But how...

    Ok... I under stand that part.
    But how do I connect with a distant
    computer? I'll just write his IP?
    It isn't looks that easy...
    For example: I want to transfer data
    from my computer to another distant computer,
    how do I do it?

    Thank you anyway,
    Arie.

    Visit: http://www.nip.to/camel2000

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    The same, you start the server on your coputer and press listen, then on the other computer you start the client, but instead of "127.0.0.1" you enter your computer's IP and connect... really easy

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    Well... Ok.
    But when I write the other computer IP so I need
    to be connected to the internet?
    And how do I get my IP? there is some API?

    Thank you,
    Arie.

    <B>Visit:</B> http://www.nip.to/camel2000

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    You need any connection (TCP/IP, IPX/SPX or something)... you can get your own IP like this:

    Code:
       MsgBox "You IP is: " & WS.LocalIP & " and your computer's name is: " & UCase( WS.LocalHostName ) & "."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width