Commit 4055fa4530231e7b920d0858ad50cf1cc4157508
1 parent
1152684a
Exists in
master
and in
1 other branch
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 | 2 | ********LAVID********** |
| 3 | 3 | *******VLibras********* |
| 4 | 4 | *------------------------------------------------------------------------ |
| ... | ... | @@ -33,7 +33,7 @@ public class Server : MonoBehaviour { |
| 33 | 33 | |
| 34 | 34 | public void startServer(){ |
| 35 | 35 | try{ |
| 36 | - IPAddress localAddr = IPAddress.Parse("127.0.0.1"); | |
| 36 | + IPAddress localAddr = IPAddress.Parse("0.0.0.0"); | |
| 37 | 37 | server = new TcpListener (localAddr, port); |
| 38 | 38 | server.Start(); // Starts listening for incoming connection requests. |
| 39 | 39 | client = server.AcceptTcpClient(); // Accepts a pending connection request. | ... | ... |