Raknet local network
BlitzMax Forums/BlitzMax Beginners Area/Raknet local network
| ||
Hello, I'm using Zeke's raknet mod (very nice!Thanks Zeke!!), but while testing on my local machine with multiple clients, the TRKSystemAddress of each client is the same. So it's impossible to send to just 1 client on the local machine because they all have the same clientID:TRKSystemAddress. Any ideas on this? Any help would be greatly appreciated!! |
| ||
Each client should have a unique port, and send it to just that port. |
| ||
yeah. if you check client port you will see that each client have different port. so you can send packets using TRKSystemAddress.Local packet:TRKPacket = server.Receive() While packet Local packetID:Int = packet.GetPacketIdentifier() Select packetID Case ID_NEW_INCOMING_CONNECTION 'New Client AddLog "New Connection" AddLog "IP: " + packet.GetSystemAddress().ToString() AddLog "Port: " + packet.GetSystemAddress().GetPort() |
| ||
Oh, thank you very much. I'll give this a go. The last step to get my networking up and running. Thanks for the help! |