|
-
Feb 12th, 2000, 11:44 PM
#1
Thread Starter
Lively Member
I have posted this many times but nobody has replied does anybody know how can i get winsock to make a connection from a program on one computer to another progra on another computer can somebody guide me to do that (i.e connect, accept, ect.)
-
Feb 13th, 2000, 12:13 PM
#2
Member
I have not done this in a while; however, here is something I hope is help ful.
In vb5 I wrote a chat program for a lan. Most of what you want came from vb help. The way it went was this: one winsock had to be the server and listen for other winsocks trying to connect. In doing so, the client needed to know the RemoteHost of the server (the name of the computer i.e. My Pc or Server or Mikes Computer). The RemotePort and LocalPort had to be set. Then you simply try to connect.
ex.
'm_str_IP is a module level str. var. holding
' the name of the server
With frmClient
!tcpClient.RemoteHost = m_str_IP
!tcpClient.RemotePort = 1001
!tcpClient.LocalPort = 0
End With
I hop this helped!
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
|