![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to bind a process to a CPU | Raom | UNIX for Advanced & Expert Users | 11 | 08-17-2007 12:16 PM |
| Bind and AIX | zuessh | AIX | 0 | 09-15-2006 11:19 AM |
| FTP, DNS & BIND | patras | UNIX for Dummies Questions & Answers | 4 | 07-03-2006 03:34 AM |
| BIND question | vertigo23 | IP Networking | 3 | 10-18-2005 10:05 AM |
| BIND Ver. 8 | alwayslearningunix | Security | 2 | 03-27-2001 04:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Bind failure
Hi all,
I am using Perl program to do socket communication. My application has to use port 40001 this is a condition I can't change the port. The execution of this script always gave an error 'Bind failure port already in use' netstat execution gives below line: udp 0 0 *.40001 *.* What this line indicates. I think due this port engagement bind fails. To fix this issue I used port reuse option as below before bind but still bind gives the same error: setsockopt($serv_sock, IPPROTO_UDP, SO_REUSEADDR, pack("l", 1)) || die "setsockopt: $!"; How can I disengage the port binding? Please help me in this regard... Thanks... |
|
||||
|
Actually the thing is my program is not running .. from start I am getting this error. So some other unknown process may using this port. How can I detect the process which uses this 40001 port so that I can kill it. Also I rebooted my machine but then also I find 40001 port engaged with some processes.
OR Is there any best way to remove this port socket entry from TCB [transmission control block]? Thanks... |
|
||||
|
install lsof. If you can't then I don't know what to tell you.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|