Quick Search for:  in language:    
Ever,want,know,which,your,ports,being,used,wh
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,014,970. lines
 Jobs: 119. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!Excel Into a webpage
By Bill Donahue on 7/2

(Screen Shot)

Unroll2 - Update
By Cyber Chris on 7/2


MultilinePWD
By Cyber Chris on 7/2


Click here to see a screenshot of this code!Song/Poem Assistant
By Peter Rowan on 7/2

(Screen Shot)

Click here to see a screenshot of this code!GPA Cal
By KBM-00 on 7/2

(Screen Shot)

Click here to see a screenshot of this code!Connection Via the Telephone line.No internet or cable.Just the telephone line
By Nass ClickMan on 7/2

(Screen Shot)

DBTool
By Make Strömberg on 7/2


Click here to see a screenshot of this code!MSChart Simple Example
By Sebastian Pereira on 7/2

(Screen Shot)

CString v1.5
By Ultimatum on 7/2


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Port Control

Print
Email
 
winzip icon
Submitted on: 8/21/1999
By: Dustin Davis  
Level: Intermediate
User Rating: By 109 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code 12677 times.
 
 
     Ever want to know which of your ports are being used while your on the net? Well, here is a full fledged application, you can scan ports in ranges such as 1-65530 or you can select 11 diffrent ports to scan, and you can watch 2 ports to see if incoming data is being sent on that port. good to see if someone gave you a trojan! And with the timer control, you can automate your scans and even save them to a log file!
 
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 Winzipto 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.


Other 44 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate 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
8/22/1999 9:12:00 PM:Bootleg Software Inc
Please Send in some comments! Let me 
know how useful this code was!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/23/1999 2:30:00 AM:NovaCode
Dustin, your a legend, this is exactly 
what I needed.
Thanks dude.
I look 
forward to seeing more of your INTERNET 
related applications.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/26/1999 6:16:00 PM:zWa53
heh, i just wanted to know, can i make 
a firewall wit this shiznits?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/26/1999 8:03:00 PM:Bootleg Software Inc.
I dont even know how to use a firewall, 
so i couldnt tell you! If you find out, 
let me know
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/8/1999 11:34:00 AM:Dane
Firewalls are used to block all 
communications to the specified port 
and you can specify different ip/tcp 
addresses to block completely.. (Pheew)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/8/1999 11:36:00 AM:Tmess
This seems great but how do I know if a 
trojan is installed on my machine??
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/10/1999 3:09:00 PM:Aaron
This is possibly one of the best coded 
programs i have ever seen
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/11/1999 12:55:00 PM:Nick
now that I have this code how do I use 
it?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/12/1999 4:00:00 PM:Sniper009
Anyone have ICQ? Message me 
at
34062038 and ask for authorizacion 
saying: Source planet! and ill let you 
add me. Cool!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/12/1999 9:48:00 PM:Help
Is there anyway to Close the Ports?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/13/1999 12:07:00 PM:John Ryder
It shouldn't be all that hard to make a 
firewall.  Just use an arrary of 
mswinsocks.  On 
winsock1_connectrequest, it should use 
the winsock.sendata command to send a 
message to whomever is trying to 
connect that the port is being blocked. 
 Next, it should close the connection 
and reset itself using winsock1.close, 
then winsock1.listen.
On form_load, 
the winsock1.localport should be set to 
whatever port needs to be blocked.  Try 
using a for / next loop to access all 
elements of the arrary.  If i ever get 
around to making one, i'll post it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/21/1999 5:25:00 AM:micke
RE: close a port
objeckt.close, and 
port num#
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/23/1999 8:06:00 PM:(~°«-_Racer_-»°~)
I am working on a firewall. I want this 
to be a good enough to sell in 
stores
and protects you 100%.Even if 
someone 
somehow gets past it it will 
disconnect on connection. I just need 
some codes please!ICQ# 40250028
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/23/1999 8:10:00 PM:Racer again
I tried to Open the Port Scanner 
Project using VB5 CCE and it wouldnt 
let me open it.I just got an error 
message it it never opened.Help! hehe
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/24/1999 7:19:00 AM:sean mckeown
i will be sure to post a complete code 
for my new program.  The source code 
contains instructions on how to build a 
firewall, port scanner, and self port 
monitoring system.  If you are 
interested in me posting this code mail 
me.  I will not post unless i get some 
response.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/7/1999 8:06:00 PM:grant
does the port scan need vb6 or 5 to 
run
thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/1999 6:47:00 PM:Daniel Errante
This is code for if you want to make a 
firewall.  In your firewall app, you 
should pop up a message box saying if 
you want to reject/accept a connection 
on a port.  This is exactly like a 
firewall if you do this.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/14/1999 9:29:00 PM:Jim
1) great program Dustinm been lookin 
for code like this before...
2) now we 
need something to determine what is 
running on a particular port  IE whats 
port 1410, 1416 and 1417
Sean  ya 
I am interested in your code post it ...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/20/1999 8:48:00 PM:Flipmojo
Hey man NICE program! Does anyone know 
how to reg. winsock.ocx or 
of a place 
where i can download it or buy 
it?
thanks!
E-MAIL ME WITH ANY 
SUGGESTIONS
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/17/1999 8:47:00 PM:Bootleg Software Inc
HAHA! Your an idi0t mike!! My program 
was developed and posted a month BEFORE 
Hackers Office 2000! Hello why dont you 
look at the dates!! Pay attention
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/31/1999 12:04:47 AM:John DeW
Great Program!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/4/2000 3:38:53 AM:moon13
hey ! good code !!  but i still have a 
problem, how can i see the data 
exchange of a used port of other 
program ?  thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/25/2002 4:01:31 AM:Peter Winter-Smith
Hmm, not bad, but you should've used 
winsock cloning to extend the 11 max 
ports to scan... That way you could've 
increased the amount.
Can I also 
recommend that you change 65530 to 
65536, I'm pretty sure that there are 
that many ports... You'll have to 
check. Anyway, nice work!
~Peter
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.