Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-06-2005, 03:19 PM   #1
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 100

Rep: Reputation: 16
[resolved] Can I force a TCP port to close

i have recently uninsalled openldap, and reinstalled it.

I noticed that I could not start slapd because it said it address already in use...
[root@box openldap]# netstat -a |grep ldap
tcp        0      0 *:ldap                      *:*                         LISTEN
tcp        0      0 *:ldaps                     *:*                         LISTEN

ldap is not running.... ps aux shows no sign of ldap or slapd.
neither does top..

why is this port still open, and can i close it without restarting...?

Last edited by Ratclaws; 09-06-2005 at 03:36 PM.
Old 09-06-2005, 03:24 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Add the -p flag to netstat to see what process is using that port.
Old 09-06-2005, 03:36 PM   #3
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 100

Original Poster
Rep: Reputation: 16
ha... Thank you very much

Turns out our mail server (CommuniGate) is doing ldap... i dont really trust it to do that. I'll be disabling this...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which port should I close? schneemann Linux - Networking 5 11-15-2005 04:15 AM
how to force kill TCP connections minil Programming 3 04-19-2005 07:04 AM
cant get port 21 to close crosswire Linux - Newbie 4 09-14-2004 07:17 PM
USB force port Jon- Linux - Hardware 1 02-14-2003 06:38 PM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 09:24 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration