Network connection timed out problems
in
Core Library Questions
•
3 months ago
Hello!! I'm making a game for a friend and I to play online together. I've made two different copies of the game, one for me, and one for him. Bellow is the code that is causing this error.
//My copy
import processing.net.*;
Server server;
Client client;
int test = 2;
PVector pos = new PVector (800,250);
void setup ()
{
size (1000,500);
server = new Server (this,5204);
client = new Client (this,"127.0.0.1",5204);
}
void draw ()
{
background (123,2,123);
player ();
// otherPlayer ();
}
________________________________________________________________
//Friends copy
import processing.net.*;
Server server;
Client client;
int test = 2;
PVector pos = new PVector (800,250);
void setup ()
{
size (1000,500);
client = new Client (this,"97.119.213.136",5204);
//My ip
}
So the problem is when i run them my friends copy the connection times out. Any help is greatly appreciated!!
1