Re: Finding my Broadcast Address...
From: Darren New (dnew_at_san.rr.com)
Date: 10/15/03
- Next message: Kevin Kenny: "Re: How to create lines/ovals on canvas with textual attributes?"
- Previous message: Alexander: "One more stupid question(arrays)"
- In reply to: Mel: "Finding my Broadcast Address..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 14 Oct 2003 23:43:07 GMT
Mel wrote:
> anyone knows how to get my boradcast address ?
> i am on WinDoze NT running latest Activestate TCL
exec ipconfig /all
capture the output.
Parse for "IP Address" and "Subnet Mask".
Your broadcast address will be your IP address bitwise-and'ed with your
subnet mask, or bitwise-or'ed with the compliment of your subnet mask,
depending on the kind of broadcast you're interested in doing.
Remember to handle the case where you don't have TCP installed, you have
more than one interface, etc., if appropriate.
(I'm assuming that that's enough of a hint to anyone who actually has a
use for knowing their broadcast address. ;-)
--
Darren New, San Diego CA USA (PST)
Don't take home left-over tripe.
It'll just digest itself before
you get around to eating it.
- Next message: Kevin Kenny: "Re: How to create lines/ovals on canvas with textual attributes?"
- Previous message: Alexander: "One more stupid question(arrays)"
- In reply to: Mel: "Finding my Broadcast Address..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading