|
-
Jul 17th, 2001, 10:14 PM
#1
Thread Starter
Frenzied Member
Winsock
Ok this is a no brainer and i've done it before but i am losing my mind. I totally forget how to do it so, can someone tell me how to connect to a server and port. thanks.
-
Jul 17th, 2001, 10:17 PM
#2
Fanatic Member
VB Code:
winsock1.Connect RemoteHostIp/Name, RemotePort
Is that what you were after ??
-
Jul 17th, 2001, 10:18 PM
#3
So Unbanned
Put the winsock control on your form. Put the remote server, and port it, i.e(www.vbforums.com, port 80).
Then in a command button, or what you'd prefer, put:
Winsock1.Connect
You can also use optional values for .Connect, for host, and IP.
-
Jul 17th, 2001, 10:21 PM
#4
Thread Starter
Frenzied Member
I did do that I did...
Private Sub Command1_Click()
Winsock1.Connect (somesite.something.com, 80)
End Sub
and it said i needed a = thing at the end and then if i take the ()'s away it says object required i think...
-
Jul 17th, 2001, 10:24 PM
#5
Thread Starter
Frenzied Member
ok i got it..i was really stupid..i had it in the winsock properties in VB and then i tried typing that code in. So , thanks anyway.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|