title: How to fix the localhost:8080 (502 Bad Gateway) problem
body: <p>I downloaded Tomcat 8 on my Mac and I started it up but when I go to the browser and enter localhost:8080 it gives me a <code>502 Bad gateway</code> error that says: </p>
  
  <pre><code>Socks5ProtocolException("SOCKS5 mode failure: SocksError('Invalid SOCKS version. Expected 0x05, got 0x47',)",)
  </code></pre>
  
  <p>how can I fix this problem?</p>
  
  <p>It was working fine but after a few days, it started to give me this error. is it okay to just change the default port o for example 8081? or I will need that 8080 port at some point?</p>
  
  <p>thanks in advance.</p>