?
Solved

Using The Winsock Control To Connect Two Computers Over The Internet

Posted on 2003-03-06
2
Medium Priority
?
152 Views
Last Modified: 2013-12-25
I'm looking for a solution that will allow me to connect two computers over the internet using the MSWinsock Control.

Is this possible, or is there another control that will do this?

I need to be able to send strings of data between the two machines.
0
Comment
Question by:Matt_H
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
dc197 earned 200 total points
ID: 8113220
Yes, use winsock.

Add a Winsock control called Winsock1.

In your sub do this:

winsock1.close
winsock1.connect "www.yahoo.com", 80

Then in the winsock1_Connect event do whatever you need to do.

Note you MUST close it before you can connect.
0
 

Author Comment

by:Matt_H
ID: 8114269
Yeah, but what i'm after is to connect two home PC's, both with internet access together over the internet.

Matt_H
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question