MAC-ADDRESS

These are old archives. They are kept for historic purposes only.
Locked
yythe1
Posts: 3
Joined: Mon Nov 22, 2004 11:24 pm

MAC-ADDRESS

Post by yythe1 »

hi , i want to compile the server to show MAC-ADDRESS on client-connecting . how can i do it?
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

There's no such option.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
yythe1
Posts: 3
Joined: Mon Nov 22, 2004 11:24 pm

Post 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
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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...
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post 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.
yythe1
Posts: 3
Joined: Mon Nov 22, 2004 11:24 pm

Post 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)?
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Modifying the source is not supported.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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*
-- codemastr
Locked