On Sun, 31 Dec 2006 10:20:45 +0800, Steve Han firstname.lastname@example.org 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.