OYIon / LiveSharp

Public repository for the LiveSharp project
96 stars 4 forks source link

No connection possible ('all of a sudden') #93

Closed ChristianWeyer closed 4 years ago

ChristianWeyer commented 4 years ago

Hm... somehow, LiveSharp no longer works as the client lib cannot connect to the server:

polyfills.js:1 POST https://localhost.livesharp.net:30539/livesharp/negotiate?negotiateVersion=1 net::ERR_NAME_NOT_RESOLVED LiveSharp_Error

Any idea what could be wrong here?

ionoy commented 4 years ago

Seems like a DNS issue to me. Can you try ping localhost.livesharp.net to see what it resolves to?

ChristianWeyer commented 4 years ago
ping localhost.livesharp.net
Ping request could not find host localhost.livesharp.net. Please check the name and try again.
ionoy commented 4 years ago

Weird. What if you do ipconfig /flushdns?

ChristianWeyer commented 4 years ago

The same.

ionoy commented 4 years ago

You can also try temporarily changing your DNS to Google 8.8.8.8 or Cloudflare 1.1.1.1 to see if they resolve correctly.

ChristianWeyer commented 4 years ago

Did that, rebooted the machine. Started livesharp server. Then it works. Hmmm...

ionoy commented 4 years ago

Someone already reported a similar issue, but it seems like it just appears randomly, and I have no idea how to fix that. For some reason, Windows just "forgets" the DNS record for localhost.livesharp.net sometimes. Anyway, I'm closing this issue. Thank you for reporting it in the first place, maybe it will help someone if it happens again.