# Change destination in client-replay

**URL:** <https://discourse.mitmproxy.org/t/change-destination-in-client-replay/504>\
**Category:** Uncategorized\
**Created:** [May 30, 2017, 12:59pm UTC](https://discourse.mitmproxy.org/t/change-destination-in-client-replay/504 "2017-05-30T12:59:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![caviar34](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@caviar34](https://discourse.mitmproxy.org/u/caviar34)\
**Post date:** [May 30, 2017, 12:59pm UTC](https://discourse.mitmproxy.org/t/change-destination-in-client-replay/504/1 "2017-05-30T12:59:44Z")

</div>

I wrote some traffic with mitmdump and now I want to replay it to another destination. How to achieve this?

---

<div class="post-metadata">

**Author:** ![caviar34](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@caviar34](https://discourse.mitmproxy.org/u/caviar34)\
**Post date:** [May 30, 2017, 2:45pm UTC](https://discourse.mitmproxy.org/t/change-destination-in-client-replay/504/2 "2017-05-30T14:45:52Z")

</div>

I’ve found solution with inline script:  
def request(context, flow):  
flow.request.host = ‘127.0.0.1’
