title: WireGuard link client ports to servers
body: <p>so i am behind isp double nat and i try to use wireguard + vps to get around that.</p>
  <p>client wg ip is 10.7.0.2
  server wg ip is 10.7.0.2</p>
  <p>For ports like 80 and 443 it works but if i try any other port with command like <code>python3 -m http.server 81</code> i get no output with <code>telnet 10.7.0.1 81</code> only with <code>telnet 10.7.0.2 81</code></p>
  <p>So i think it should transfer from 10.7.0.2 to 10.7.0.1 and then that will be exported to external vps network let's say external ip is x.x.x.x, if that is not the case then i probably need to link 10.7.0.2 to x.x.x.x.</p>
  <p>So i want to host service on client's port 8080 and then i would be able to access it with x.x.x.x:8080</p>
  <p>if i type <code>dig +short myip.opendns.com @resolver1.opendns.com </code> on client side i get x.x.x.x</p>
  <p>Client conf:</p>
  <pre><code>[Interface]
  Address = 10.7.0.2/24
  PrivateKey = ***
  
  [Peer]
  PublicKey = ***
  PresharedKey = ***
  AllowedIPs = 0.0.0.0/0, ::/0
  Endpoint = x.x.x.x:51820
  PersistentKeepalive = 25
  
  </code></pre>
  <p>Server conf:</p>
  <pre><code>[Interface]
  Address = 10.7.0.1/24
  PrivateKey = ***
  ListenPort = 51820
  
  [Peer]
  PublicKey = ***
  PresharedKey = ***
  AllowedIPs = 10.7.0.2/32
  </code></pre>
  <p>if someone can clear this up for me that would be helpful</p>