I forget to say that I am using the lastest version of processing 3.5.3 and I use net and serial libraries.