Raknet local network

BlitzMax Forums/BlitzMax Beginners Area/Raknet local network

YellBellzDotCom(Posted 2011) [#1]
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!!


Czar Flavius(Posted 2011) [#2]
Each client should have a unique port, and send it to just that port.


Zeke(Posted 2011) [#3]
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()



YellBellzDotCom(Posted 2011) [#4]
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!