Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Using The Winsock Control To Connect Two Computers Over The Internet

Posted on 2003-03-06
2
Medium Priority
?
160 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
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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 Month11 days, 11 hours left to enroll

564 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