Re: Finding my Broadcast Address...

From: Darren New (dnew_at_san.rr.com)
Date: 10/15/03


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.


Relevant Pages

  • Re: Broadcasting using WME SDK
    ... the "presenter" can do anything on the screen and broadcast that ... > to other users of the program who can view the screen capture on their ... It doesn't really say how to use the API to ... You can use DirectShow and an instance of the WM ASF Reader filter to ...
    (microsoft.public.windowsmedia.encoder)
  • Re: [SLE] ip range question....10.0.0.0/32 etc...
    ... >>need for a broadcast or network address. ... This started when a question was posted about a 32 bit subnet mask. ... valid subnet mask for a point to point link. ... As for your connections, how are you ...
    (SuSE)
  • Re: DHCP scope is too small for network: possible ways to resolve
    ... first - change the subnet mask. ... amount of broadcast traffic (well, it's a lot of broadcasts, but network ... router with dhcp relay support. ...
    (microsoft.public.win2000.networking)
  • Re: newbie question about snoop
    ... > are you able to run snoop on server A, and capture packets between B ... Otherwise you only see MAC layer broadcast or unsteered ...
    (comp.unix.solaris)
  • Broadcasting using WME SDK
    ... I'm sorry if this is a basic question or if it's been asked ... application that uses the Windows Media Encoder 9 SDK to capture the screen ... I'm also plugged into a certain API to allow the data to instead be broadcast ... SDK to broadcast. ...
    (microsoft.public.windowsmedia.encoder)

Loading