[NTLUG:Discuss] Fatal error - Cannot bind to lpd port '515'
Paul Ingendorf
pauldy at wantek.net
Tue Oct 7 11:19:09 CDT 2003
Your right I should have bullet pointed them to avoid confusion.
#1 You need to be root
#2 Check if something is already running on that port.
Judging by the output you sent the second option was the case. It looks
like you have something setup in xinetd that is binding to the port. The
easy way to find what is binding to that port would be to grep for it.
grep 515 /etc/xinetd.d/*
If you like you can add "| grep port" to the end to make sure you aren't
getting anything that isn't on that port. More than likely you will be
presented with a filename: and the line from the file that matches similar
to the following.
/etc/xinetd.d/somefile: port = 515
Now edit the file /etc/xinetd.d/somefile were somefile was the one it
returned to you look for the line
disable = no
and change it to
disable = yes
Next you would run
/etc/init.d/xinetd restart
If this fails you can also use
killall -HUP xinetd
Now when you do whatever you were doing you will not get the Fatal error -
Cannot bind to lpd port '515'
-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
Behalf Of Noah
Sent: Tuesday, October 07, 2003 10:46 AM
To: NTLUG Discussion List
Subject: Re: [NTLUG:Discuss] Fatal error - Cannot bind to lpd port '515'
Paul Ingendorf wrote:
> First thing I would check is what is causing you not to be able to bind to
> the port.
>
> First you need to be root. Assuming you are next you check to see if
> something is already running on that port.
>
> lsof -i TCP:515
# /usr/sbin/lsof -i TCP:515
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 767 root 5u IPv4 1491 TCP *:printer (LISTEN)
[There's the info., just not sure what to do with it.]
>
> More than likely it is one of these two things that is preventing you from
> being able to bind to the port.
One of which two? (You only mentioned one thing.)
More information about the Discuss
mailing list