I’m trying to configure out the router we have at our house but I’ve came to a problem, I thought I only need to give it port from witch I’m receiving the messages, but now I see I need to give it port from what I will receive messages as well, …
so, … what should I choose? other applications? or…?
[14586-port+forwarding1.jpg|14586]
and that what should I give for from port? through port is probably 25001 and so is to port. right?
Server Script:
public int Port = 25001;
void Start(){
Network.InitializeServer(10, Port);
}
Client Script:
public string IP = "31.15.149.40"; // server IP
public int Port = 25001; // Open Port to server
void Start (){
Network.Connect(IP, Port);
}
[14587-port+forwarding.jpg|14587]
and at protocol I should use TCP right?
there are options:
- TCP
- UDP
- ESP
- GRE
thanks in advance