title: How to change the Tor exit node programmatically to get a new IP?
body: <p>I have Tor running on my computer, and I need to change the Tor exit node every five minutes.
  For example, if I start using Tor via some exit node, then in 5 minutes I want Tor to change to an exit node with a different IP address. How can I do this?</p>
  
  <p>Tor, as far as I know, is listening to port 8051  on localhost.</p>
  
  <p>What commands can I send to this port to make Tor build a new chain, so that I can get another IP address?</p>