title: Connecting to a locally running SignalR .netcore server via android emulator
body: <p>I have a .netcore SignalR server running locally through ISS express. (<a href="https://localhost:44372/secureChat" rel="nofollow noreferrer">https://localhost:44372/secureChat</a>")</p>
  
  <p>I have an Android Emulator running through Android Studio.</p>
  
  <p>For referencing localhost things via the emulator you use the ip 10.0.2.2.</p>
  
  <p>I'm using the microsoft signalR android package: com.microsoft.signalr:signalr</p>
  
  <p>I using the hubConnectionBuilder to connect to: <a href="https://10.0.2.2:44372/secureChat" rel="nofollow noreferrer">https://10.0.2.2:44372/secureChat</a></p>
  
  <p>When I attempt to connect I get the following error: java.lang.RuntimeException: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.</p>
  
  <p>I've found solutions online but none of them relate to SignalR or socket connections. </p>
  
  <p>Alternatively I also have a website that connects to the local signalR server and when I launch the website locally and then host that inside a WebView in android app, it works fine (webview connected at <a href="https://10.0.2.2:3000" rel="nofollow noreferrer">https://10.0.2.2:3000</a>) , but I'm trying to experiment with connecting directly from Android without the webview.</p>
  
  <p>Does anybody have any idea what I need to do to resolve this issue?</p>