I have deleted all .tap files in the work directory(a *.tap would use 8080?),then "mktap telnet -p 8080 ..." and "twistd -f telnet.tap",testing on "telnet localhost 8080" get message as the following: ...... 2006/12/30 14:31 CST [-] twisted.internet.error.CannotLi stenError: Couldn't listen on any:8080: (98, 'Address already in use'). How to free the port 8080? -- Steve Han
On Sun, 31 Dec 2006 10:20:45 +0800, Steve Han <hxianping@gmail.com> wrote:
I have deleted all .tap files in the work directory(a *.tap would use 8080?),then "mktap telnet -p 8080 ..." and "twistd -f telnet.tap",testing on "telnet localhost 8080" get message as the following: ...... 2006/12/30 14:31 CST [-] twisted.internet.error.CannotLi stenError: Couldn't listen on any:8080: (98, 'Address already in use').
How to free the port 8080?
TAP files are just files. You are running a program which is using port 8080. Perhaps it is a Twisted program which you previously ran and never shut down. Perhaps it is another program entirely. Whatever the case, you have to find the program and cause it to release the port, probably by exiting. If you are using Linux, lsof, fuser, or netstat may be of use. Jean-Paul
On Sun, Dec 31, 2006 at 10:20:45AM +0800, Steve Han wrote:
I have deleted all .tap files in the work directory(a *.tap would use 8080?),then "mktap telnet -p 8080 ..." and "twistd -f telnet.tap",testing on "telnet localhost 8080" get message as the following: ...... 2006/12/30 14:31 CST [-] twisted.internet.error.CannotLi stenError: Couldn't listen on any:8080: (98, 'Address already in use').
How to free the port 8080?
deleting all *.tap you cannot kill the process that is using that port. $ netstat -tp | grep 8080 see which process/pid id using that port and then kill it $ kill xxxx -- reply to `python -c "print 'moc.liamg@itsuig.ocram'[::-1]"`
participants (3)
-
Jean-Paul Calderone
-
Marco Giusti
-
Steve Han