PDA

Click to See Complete Forum and Search --> : How to use it?


Arie
Sep 29th, 2000, 06:42 AM
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

Arie
Oct 1st, 2000, 05:33 AM
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

Fox
Oct 1st, 2000, 11:15 AM
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 ;)

Arie
Oct 3rd, 2000, 02:45 PM
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

Fox
Oct 4th, 2000, 02:41 PM
You need any connection (TCP/IP, IPX/SPX or something)... you can get your own IP like this:


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