Page 1 of 1
MAC-ADDRESS
Posted: Mon Nov 22, 2004 11:29 pm
by yythe1
hi , i want to compile the server to show MAC-ADDRESS on client-connecting . how can i do it?
Posted: Tue Nov 23, 2004 12:26 am
by Syzop
There's no such option.
Posted: Tue Nov 23, 2004 7:22 am
by aquanight
It can't be done. The MAC address is hidden by the IP protocol, and it's pretty much impossible to rely on really.
Posted: Tue Nov 23, 2004 7:34 am
by Stealth
In theory, you can get the MAC address, because that is what all routing is done by.
If Unreal can get the MAC from the OS is a different question. Chances are, if there were a way to get the MAC from the OS would take more resources and slow the server more than it is nesassary to just to display one more bit of useless information to the clients. Getting a MAC, however, can be a useful thing if you were intending to actually use it for something (like static server bans).
I do not think there is a way for Unreal the get the MAC address from the OS.
Posted: Tue Nov 23, 2004 3:45 pm
by yythe1
i wanna use it for banning , of course... the MAC-ADDRESS is already exists it the packet recieved by the server (with dest port , src port , ip and the rest) , but i don't know where's the code for the actual full packet (after decode) .
btw , maybe i'm confused about the concept (MAC-ADDRESS) , maybe it's another data , but anyway i need to know where do i have the full decoded packet data (with headers) on the server functions
Posted: Tue Nov 23, 2004 4:15 pm
by Dukat
It's not possible.
The server can't know the mac address of the client. That's how the internet works.
It could only get the mac address if it were in the same LAN - but there such a feature is pretty useless, because you most probably know all the clients...
Oh and:
You are aware: The mac address can be changed too...
Posted: Tue Nov 23, 2004 4:25 pm
by Syzop
Right, it's only possible on a network without any l3 routing (read: routers), so typically a LAN with some hubs/switches etc.
You are aware: The mac address can be changed too...
Exactly, and it's easy too...
This site has a nice overview of how to do it by OS.
Posted: Wed Nov 24, 2004 7:56 am
by yythe1
Maybe it's called MAC-ID?
btw , i am aware of possible changes to this address , but not everybody knows how to change it ...
anyway , can you tell me please on which file & function i've got the full decoded packet (with headers) or there's no such option (i'm compiling it for windows XP)?
Posted: Wed Nov 24, 2004 2:53 pm
by Dukat
Modifying the source is not supported.
Posted: Wed Nov 24, 2004 6:03 pm
by codemastr
Lets also not forget that MAC addresses are for LANs only. If you're using dialup, you don't have a MAC address.
Anyway, the question has been answered, so there is no reason to keep asking about it *locked*