k</span><span class="o">.</span><span class="n">forward</span><span class="p">(</span><span class="s2">&quot;localhost:4242&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>More options can be passed to the <code class="docutils literal notranslate"><span class="pre">forward</span></code> method to customize the connection:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">listener</span> <span class="o">=</span> <span class="n">ngrok</span><sp