Commit 4055fa4530231e7b920d0858ad50cf1cc4157508

Authored by ClaudiomarAraujo
1 parent 1152684a
Exists in master and in 1 other branch devel

Modifica IP para 0.0.0.0

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
Assets/Scripts/Server.cs
1 -/********************** 1 +/**********************
2 ********LAVID********** 2 ********LAVID**********
3 *******VLibras********* 3 *******VLibras*********
4 *------------------------------------------------------------------------ 4 *------------------------------------------------------------------------
@@ -33,7 +33,7 @@ public class Server : MonoBehaviour { @@ -33,7 +33,7 @@ public class Server : MonoBehaviour {
33 33
34 public void startServer(){ 34 public void startServer(){
35 try{ 35 try{
36 - IPAddress localAddr = IPAddress.Parse("127.0.0.1"); 36 + IPAddress localAddr = IPAddress.Parse("0.0.0.0");
37 server = new TcpListener (localAddr, port); 37 server = new TcpListener (localAddr, port);
38 server.Start(); // Starts listening for incoming connection requests. 38 server.Start(); // Starts listening for incoming connection requests.
39 client = server.AcceptTcpClient(); // Accepts a pending connection request. 39 client = server.AcceptTcpClient(); // Accepts a pending connection request.