Computing.Net > Forums > Programming > Block TCP ports with VB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Block TCP ports with VB

Reply to Message Icon

Name: nathan
Date: February 8, 2003 at 14:21:32 Pacific
OS: win2k
CPU/Ram: amd1700+
Comment:

how can i block tcp ports with vb. ex. say to close port 80, when you click a command button, then open it back up when the command button is pressed again. anyone know how to do this, or a good site that would help? thanks..

Nathan



Sponsored Link
Ads by Google

Response Number 1
Name: micah
Date: February 9, 2003 at 21:57:01 Pacific
Reply:

I dont really know, but one cheap way to do it is have your program listen on whatever port...and thats it. Then no other programs can listen on that port. Thats about all I can think of to do it easy in VB. C++ would be a diff story.


0

Response Number 2
Name: nathan
Date: February 11, 2003 at 06:21:43 Pacific
Reply:

yes but when i set the winsock control to listen on localport 8080, it errors saying the address is in use. is there a way around this?

Thanks,
Nathan


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Block TCP ports with VB

can I block a port with a Bat file www.computing.net/answers/programming/can-i-block-a-port-with-a-bat-file/15905.html

Serial ports and VB.net www.computing.net/answers/programming/serial-ports-and-vbnet/8212.html

add scroll with vb.net www.computing.net/answers/programming/add-scroll-with-vbnet/13035.html