Processing net question

how i can conect to the server (library processing.net.*) in the global net but no in the local net

What is your use case? Please show some minimal code.
You can load your web app in any service like Google, Heroku, your own server provider…
Can you reach your service using your browser? using curl?

Then you can use simple HTTP/HTTPs calls to reach your service. For that, you can explore previous posts in the forum.

One simple way to retrieve data is using loadStrings() as it will fetch data if your service accepts HTTP request using the GET verb. You should give it a try. Other posts to check:

See the reference: https://processing.org/reference/loadStrings_.html

Extra:

void setup(){
  String strOut[]=loadStrings("http://www.example.com");
  printArray(strOut);
}

Kf

1 Like