Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Portmapper and Xinetd

Status
Not open for further replies.

KCV

Programmer
Aug 11, 2004
20
US
I need to start portmap thru xinetd. I tried and it fails saying "address already in use". I think since xinetd runs instead of portmap on 111, portmapper cannot start and bind itself to that port. So how do I tell portmapper to start on a different port?

--KCV
 
That's not how it works, xinetd listens on the port for the service, then starts the service for an incoming request using an ephemeral port. I recommend Stevens Volume 1 for more detail on that.

I'm not sure you can run portmapper from inetd, I've never tried, but setting that aside, you're probably already running the portmapper daemon, you need to shut that down to free up port 111.

If portmapper isn't running use lsof -i to see what is running on that port.

Once you've freed up the port xinetd should be able to bind to that port.

If the error message is coming from portmapper, then you are right about the port conflict and portmapper cannot run on an ephemeral port, and so can't be run from xinetd.
 
portmap needs to be already running so that NFS services can register with it, and it in turn can tell clients where to locate them. Therefore it doesn't seem to make sense to run portmap from xinetd



Click below for S8700 Media Server information
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top