Capturing Net Client Error if Server Not Running

Hi, thank you for the reply!

did you mean this:?

  try{
  c = new Client(this, "127.0.0.1", 12345); // Replace with your server's IP and port
  } catch (Exception e){
    println("caught it");
  }

this gives me the original error I reported.

Or did you mean something else? I’m new to processing/java/etc. so I could be missing something obvious