LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2005, 02:19 PM   #1
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 102

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...
Code:
[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 02:36 PM.
 
Old 09-06-2005, 02:24 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

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

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...
 
  


Reply


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 03:15 AM
how to force kill TCP connections minil Programming 3 04-19-2005 06:04 AM
cant get port 21 to close crosswire Linux - Newbie 4 09-14-2004 06:17 PM
USB force port Jon- Linux - Hardware 1 02-14-2003 05:38 PM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:16 AM.

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