Advertisement

How to obtain different IPX/SPX Client addresses?

Started by October 31, 2003 02:37 AM
0 comments, last by werbfred 21 years, 3 months ago
Hi everybody, I'm developing actually my socket toolbox for my game and I encounter a little problem concerning IPX/SPX addresses. Let’s explain what I know and what I’m looking for… When I use TCP or UDP the address I get is retrieved from my provider and so there is no problem concerning the fact to have duplicate addresses… Anyway here is no problem for me… But, I have to define for my SOCKADDR_IPX structure the different fields. The network address will be the same for all the players within the game so I can set it for everyone to the same value, but concerning the sa_nodenum this is more complicated. The server could have a sa_nodenum set to 0, but how do I define for my 10 other players a unique sa_nodenum ? The idea would be to use a value saved in a configuration file, but does it exists another way to insure a unique sa_nodenum or maybe can I get the sa_nodenum from my card from windows… I hope to be clear enough in what I’m looking for… Please help me [edited by - werbfred on October 31, 2003 7:52:47 AM] [edited by - werbfred on October 31, 2003 7:53:37 AM] [edited by - werbfred on October 31, 2003 10:06:45 AM]
I was looking a bit around and found somewhere on the net that maybe the MAC address could fit my needs. It is supposed to be unique. I say "suppose" since I was told two years ago in computer class that this MAC address was suposed to be unique, however since nobody use it, the manufacturer set the same address on several adapters. The weird thing is that I read ont the same site that this MAC address is used by the tcp/ip protocol, and this teacher thought us about TCP/IP programming at this time :D

Anyway if unique or not, if playing in a closed LAN with ipx/spx there is a little chance that two users will have the same MAC address...

This topic is closed to new replies.

Advertisement