The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to block a port Saurabh78 IP Networking 4 05-15-2008 07:59 AM
disabled telnet now need port 23 or port 22 panzerkw SUN Solaris 3 03-05-2007 11:08 AM
BAD SUPER BLOCK - Run fsck with alternate super block number admin wanabee HP-UX 1 09-08-2006 10:57 AM
unix program that can port scan a c block of ips for proxies user UNIX for Dummies Questions & Answers 1 07-11-2005 11:01 AM
block telnet to specific port xiamin IP Networking 5 03-20-2002 04:51 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2008
Registered User
 

Join Date: Jun 2004
Posts: 26
How to know port is block..

My server is running on a port 16386, in the case when this port is blocked by some other application ( anti virus etc. ) or firewall then how do i know it's block? Is bind will return any specific error in this case.
I have to know is it blocked or not?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-05-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Blocks don't typically prevent you from binding to a port, it just prevents any clients from connecting to that port successfully. Run a quick client check to that port and see if it succeeds? Try localhost and the external IP address.
Reply With Quote
  #3 (permalink)  
Old 05-15-2008
Registered User
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 250
The obvious way is that connect() will always timeout on filtered ports while you'll get connection refused from unbound service ports.
Of course, that's too obvious, but is a start. Take a look at the code for something like nmap for heuristics.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0