Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!diku!nomann From: nomann@diku.dk (Ole Nomann Thomsen) Newsgroups: comp.unix.questions Subject: telnetd: All network ports in use. What do I do ? Keywords: telnet, pty Message-ID: <1991May14.143329.843@odin.diku.dk> Date: 14 May 91 14:33:29 GMT Article-I.D.: odin.1991May14.143329.843 Sender: nomann@rimfaxe.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 30 Does anyone know what to do about the "telnetd: All network ports in use."- error message, when connecting to a unix-system via telnet ? Sometimes my ATT-unix puts itself into a state, where it will only accept one in- going telnet. Trying to open more results in this error. I looked in the telnetd.c source, and it seems that this error comes when the telnetd is unable to open any /dev/ptyp?? pseudo-terminal-masters, so it seems to be a problem with the pty-drivers. I have a snip of code, that tries to open the /dev/ptyp??'s, and calls perror if it fails. When I tried this, I got "I/O error" on all of them with the system in the above state. (normally they can be opened, okay, but only once. My opening them seems to foul things up too). I tried chown(, 0, 0); chmod(, 0666); chown(, 0, 0); chmod(, 0666); As in the telnetd.c, to no avail. The pty's stay unavailable. My questions are: 1. Why does the pty's suddently become unopenable ? 2. What can I do to remedy the problem (*Besides* rebooting, please) Hope someone takes pity and helps me -- - Ole. (nomann@diku.dk).