- Home /
Question by
MosesSunny · Aug 06, 2018 at 01:55 PM ·
networkingnetworklayerport
Network.Player.port is always 0
NetworkTransport.Init();
ConnectionConfig config = new ConnectionConfig();
int myReliableChannelId = config.AddChannel(QosType.Reliable);
HostTopology topology = new HostTopology(config,10);
int hostID = NetworkTransport.AddHost(topology,8888);
print(Network.player.port);
This is my code. I am trying to connect my local server application with local client application. Everything is good but Network.player.port is always printing 0 even I specified the port no. in AddHost which is 8888.
Comment
Your answer
Follow this Question
Related Questions
Showing a port already occupied but its not actually occupied 0 Answers
Moving another player character on Network 1 Answer
Multiplayer Moving Bullet 1 Answer
RPC vs WWW : Performance 1 Answer