Loading...
Logo
Processing Forum
Hi,
I'm trying to use the processing.net library to create a server and a client. I then want to run the client on the web and allow multiple clients from to connect to the server from separate devices and therefore communicate with each other. This is working fine when two clients are both run from the same computer as the server but when I to exported it and put it on the web it doesn't work. www.liatwerber.com/chat the client doesnt communicate with the server. Do I need to change something to make it work on the web, besides the IP address which i changed. 

THANK YOU

Replies(1)


when I to exported it and put it on the web it doesn't work
 
If you exported your server into JavaScript mode, it wouldn't work, as processing.net.* libraries only work in Java mode.

If you exported your server as Applet from processing, then it was exported as unsigned applet, which means that you cannot start server and listen to the ports. Here's some more detail:

The solution would be to run your "server" sketch  on some computer (for example your laptop) all the time.

Or you can run your sketch on remote Linux headless server (let's say Amazon EC2)