diff --git a/domain/src/main.cpp b/domain/src/main.cpp index 7323ff86e0..eb23eac51f 100644 --- a/domain/src/main.cpp +++ b/domain/src/main.cpp @@ -70,7 +70,12 @@ int addAgent(uint32_t ip, in_port_t port, char *private_ip, unsigned short priva while ((ip != agents[i].ip || port != agents[i].public_port) && (i < num_agents)) { i++; } - if ((i == num_agents) || (agents[i].active == false)) is_new = 1; + + if ((i == num_agents) || (agents[i].active == false)) { + is_new = 1; + agents[i].private_addr = new char[255]; + } + agents[i].ip = ip; agents[i].x = x; agents[i].y = y; diff --git a/interface/src/main.cpp b/interface/src/main.cpp index a42c06d6c1..51c2558ed8 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -60,7 +60,7 @@ int simulate_on = 1; const int MAX_PACKET_SIZE = 1500; char DOMAIN_HOSTNAME[] = "highfidelity.below92.com"; -char DOMAIN_IP[100] = ""; // IP Address will be used first if not empty string +char DOMAIN_IP[100] = "192.168.1.47"; // IP Address will be used first if not empty string const int DOMAINSERVER_PORT = 40102; UDPSocket agentSocket(AGENT_UDP_PORT);