mitmproxy: Error starting proxy server: Address already in use

Created on 19 Feb 2014  路  5Comments  路  Source: mitmproxy/mitmproxy

Hi, I encountered a problem
I麓ve installed the mitmproxy on Ubuntu Server 12.04

If i write for example mitmproxy, i get the message
"mitmproxy: Error starting proxy server: Address already in use"

But, if i write mitmproxy -p 3128 into the terminal he start麓s the proxy but don麓t track anything.
Please, help me

Most helpful comment

I change the listening port, use "mitmproxy -p 9999" instead ,it works.

All 5 comments

Hi there,

there's already another program running on port 8080. You can use either sudo lsof -i :80 or sudo netstat -lnp | grep ':80 ' to find out which one.

Cheers,
Max

@mhils Thanks - quick question: I found the program running using these commands, killed the process, and still got the same error. Using these commands again, no programs showed as running on port 8080. I had to restart my computer to get it working again. Any advice?

I change the listening port, use "mitmproxy -p 9999" instead ,it works.

i my case "mitmproxy" was using the port 8080. look for appications running on that port and close them.
mitmproxy should work afterwards

Just in case above solutions didn't work:
Follow the following steps:

  1. Get the port your process is listening to:
    $ ps ax | grep mitm

  2. Kill the Process
    $ kill PROCESS_NAME

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atx picture atx  路  4Comments

mhils picture mhils  路  4Comments

fjcaetano picture fjcaetano  路  4Comments

aesyondu picture aesyondu  路  4Comments

mancubus77 picture mancubus77  路  3Comments