I have not seen a solution for that problem on the forum yet but there are a few topics with that error.
Can you please follow the instructions in Arduino ide 2.3.3 blank screen - #6 by ptillisch and post the result here.
I have no idea what the additional output that you get means (see Arduino ide 2.3.3 blank screen - #7 by ezuralski). It might shine a light on the issue and it might speed up the process if you post the results.
As the issue seems to be networking related and localhost is involved, can you ping localhost (both in IP4 and IP6 mode)? That's all that I can suggest.