LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-03-2002, 06:48 PM   #1
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Rep: Reputation: 30
[crit] (98) Address already in use: make_sock could not bind to port 3339.


[crit] (98) Address already in use: make_sock could not bind to port 3339. Every once in a while I get this error and i have to reboot my server in order for people to access my web server again. WHen i Get this error I can try to go to my web site, it says www.mysite.com found..waiting for reply, but then never gets a reply. I have to reboot.

What would cause this????

Any ideas??
 
Old 04-04-2002, 02:04 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
As root run the following command:

netstat -lnp | grep 3339

That should tell you which process is listening on that port. You can then restart or try to recover that process in someother way. This should save you a reboot.
 
Old 04-04-2002, 07:22 AM   #3
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Original Poster
Rep: Reputation: 30
Thanks Mik,
I can just kill the process or restart it to aviod rebooting.

My question is, the process running on that port is httpd. Where does port 3339 come from? Isnt apache smart enough to know if its in use to kill it and restart it or just choose another port?

This problem only happens out of the blue...Not sure if it has something to do with me stopping and restarting the web server while the process has not died yet.

Thanks so much for your time. I really appreciate it.
ForumKid
 
Old 04-04-2002, 08:56 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
I don't know what it's using port 3339 for. Are you per chance using that port to serve your webpages or using it for a virtual host?

If there was still an instance of apache running which wasn't closed properly then starting up a new one would generate an error similar to that one.
Only one application can bind to a port and it doesn't have control over other applications. I assume it's a port it's listening on which is usually a fixed number so it won't go picking other numbers. But why it's using 3339 I don't know.
 
Old 06-10-2008, 02:38 AM   #5
madhu78
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Thumbs up Its working ..

Thank you very much. By using the "netstat -lnp | grep 3339" i was able to identify the conflicting process. Killed it and restart the process freshl again. Everything is working cool now.

Thanks once again.
 
  


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
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 bruvajon Linux - Software 34 11-30-2011 03:08 PM
how can i remove an address bind sibu_rajappan Linux - Networking 0 12-24-2004 01:50 AM
bind : Address already in use sheni Linux - Networking 1 11-11-2004 12:41 PM
cannot bind to socket: address already in use exfacior Linux - Wireless Networking 0 09-27-2004 12:34 PM
Help me with this socket address bind program. rnice Linux - Networking 0 09-17-2004 07:33 PM


All times are GMT -5. The time now is 08:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration