Important alert: (current site time 7/16/2013 12:44:01 AM EDT)
 

winzip icon

[[_Winsock Connection Example

Email
Submitted on: 7/27/2004 2:23:25 PM
By: SSJLink 
Level: Beginner
User Rating: By 6 Users
Compatibility: VB 6.0
Views: 43093
author picture
(About the author)
 
     This code is very basic, it's just to teach noobies (at either VB or Winsock) how to connect to a remote system, it isn't to be used as a trojan or anything, it is VERY basic.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

2/5/2005 5:19:49 PM

Can you help me out?I have the IP i want to connect to but i dont know what port to use? How do you get the port?Help please. Thank you
(If this comment was disrespectful, please report it.)

 
3/4/2005 9:14:52 AM

Port can be any 4 digit number. like: 1234 but you must assign thesame port to both client and server.
(If this comment was disrespectful, please report it.)

 
4/1/2005 8:29:35 PMPatabugen-

This is very good and basic but unless you already know how to accept connections its... pretty useless... It would be worth adding how to accept connections, maybe on a different form.
(If this comment was disrespectful, please report it.)

 
12/11/2005 12:05:14 AMbrad

The port number can be anything from 1 to 65535, Just make sure the port you are using is not a widely used port (like 80(HTTP) or 21(FTP)).
(If this comment was disrespectful, please report it.)

 
12/16/2005 12:55:12 AMjepoy

it doesn't work...can you mail me a procedure how to use it...it looks so very useful...
(If this comment was disrespectful, please report it.)

 
12/19/2005 10:51:48 PMleo

please we like to be called technalagicaly disabled... not noobies
(If this comment was disrespectful, please report it.)

 
8/13/2006 1:49:28 AMEkki

that was nice one. buddy i whould be waiting for some more from u!
(If this comment was disrespectful, please report it.)

 
1/28/2008 5:42:37 AM.:|phr34k|:. ph34r_m3

Hey... is there any way you could maybe email me at "ph34r_m3@usa.com" and tell me how i would make a "UDP" Flooder... please, if anyone knows the basics about making a UDP Flooder... give me a hint, im stuck... i started this language like about a week ago or so, so far this language is pretty easy... but i need help with a UDP Flooder, i do not plan on using it for harm, but only to test the connection of my new Box i've got!
(If this comment was disrespectful, please report it.)

 
4/4/2010 8:13:37 PMvictor nabe

vb..,ok @@
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.