# Reverse proxy listen\_port not taking

**URL:** <https://discourse.mitmproxy.org/t/reverse-proxy-listen-port-not-taking/1709>\
**Category:** help\
**Created:** [October 24, 2019, 2:35pm UTC](https://discourse.mitmproxy.org/t/reverse-proxy-listen-port-not-taking/1709 "2019-10-24T14:35:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imac](https://avatars.discourse-cdn.com/v4/letter/i/9dc877/32.png) [@imac](https://discourse.mitmproxy.org/u/imac)\
**Post date:** [October 24, 2019, 2:35pm UTC](https://discourse.mitmproxy.org/t/reverse-proxy-listen-port-not-taking/1709/1 "2019-10-24T14:35:03Z")

</div>

I’ve set up a simple reverse proxy on Ubuntu: mitmproxy --mode reverse:[http://host.example.com/](http://host.example.com/) --set block\_global=false --set listen\_port=80

Earlier, I was getting “Error starting proxy server: PermissionError(13, ‘Permission denied’)” for the above, which seems to have melted away; the current issue is that the listen\_port is being ignored. I get RSTs back for requests sent on 80 (8080 is still in play)…

---

<div class="post-metadata">

**Author:** ![imac](https://avatars.discourse-cdn.com/v4/letter/i/9dc877/32.png) [@imac](https://discourse.mitmproxy.org/u/imac)\
**Post date:** [October 28, 2019, 12:38pm UTC](https://discourse.mitmproxy.org/t/reverse-proxy-listen-port-not-taking/1709/2 "2019-10-28T12:38:24Z")

</div>

Is everyone else able to successfully configure the port the proxy is listening on? I could change my web server to 8080, but that misses the point…

---

<div class="post-metadata">

**Author:** ![imac](https://avatars.discourse-cdn.com/v4/letter/i/9dc877/32.png) [@imac](https://discourse.mitmproxy.org/u/imac)\
**Post date:** [November 4, 2019, 12:29pm UTC](https://discourse.mitmproxy.org/t/reverse-proxy-listen-port-not-taking/1709/3 "2019-11-04T12:29:03Z")

</div>

Some/any information/suggestions would be greatly appreciated!

Am I asking a stupid/difficult/redundant question?

I’m afraid I can’t figure this out for myself; and I find what documentation there is incomplete/outdated/contains errors… what do people actually use?
