![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
|||
|
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.
|
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |