How do I get the subnet mask

How do I get the subnet mask for each IP address my host supports in Java? I need to get this so I can send a local broadcast on a specific subnet.
Thanks,
Doug Grover

Actually on windows you are probably going to beusing
ipconfig."ipconfig" will give you the values for each network
interface on your machine bound to the TCP/IP
protocol.
"route print" will print the windows routing table for
the network the machine is on.
Quoted from the Microsoft web site, "The routing table
is built automatically, based on the current TCP/IP
configuration of your computer. Each route occupies a
single line in the displayed table. The routing table
is searched by your computer for an entry that is the
most specific match to the destination IP address."
Yes I know what it does.
In most cases when someone wants this information they use ipconfig.
Although your suggestion does work on older boxes as well. But the result is somewhat less evident.

Similar Messages

  • How can we get the prompt to enter IP Address, Subnet Mask , gateway and DNS Server during Task Sequence?

    How can we get the prompt to enter IP Address, Subnet Mask , gateway and DNS Server during Task Sequence?

    This is for 2007 but may still be relevant for 2012
    http://hexdump.net/?p=391
    Cheers
    Paul | sccmentor.wordpress.com

  • How to get WSID & Subnet Mask for local system

    Hi,
    In my application I have to show local system IP Address, WSID & Subnet Mask.
    Local IP Address I can obtain using InetAddress.getLocalHost() but couldnt get any idea how
    to get WSID & Subnet Mask.
    Please help me out.
    Thanks in advance.

    Thanks for your reply,
    Actually my application is using JDK 1.5 & I cannot change the JDK version because application is working on various client location.
    Is there no option to get WSID or Subnet Mask in JDK 1.5. Need some alternative solution which will work in JDK 1.5

  • How do I get the adjustment brush to "paint" white?

    How do I get the adjustment brush to "paint" white? I have tried the  color panel, but nothing works.

    Make sure 'Auto Mask' is unchecked, Flow & Density = 100, and desired Feathering is set before painting. Set the Adjustment Brush to Exposure = +4. If you have LR5 right-click on the Adjustment Brush pin you just created and select Duplicate. If you have LR4 or earlier you'll probably need to manually paint the area twice with Exposure = +4.

  • Have imported video into audition but how do I get the audio to snap after editing?

    Just to explain, I have imported a timeline from Premiere into Audition CC. I have one full piece of video and one piece of audio but need to clean up the audio. What I'm trying to do is edit the audio and have it snap to the piece of audio to the left as you would do normally. I will then concern myself with cutaways etc to mask the video when back in premiere. My question is how do I get the audio and video to snap in sync with my audio edits( Can't seem to get it to snap at all at the moment)
    Cheers

    The video in Audition is just a guide and can't be edited. So if you cut out chunks of the audio it will no longer be in sync with the video if you try and join the audio together.
    When you say that you are cleaning up the audio what do you need to do to it in order to clean it? If it is just a case of muted unwanted parts of the audio that can be done in Multitrack by using the Volume envelopes to mute the audio at appropriate places without cutting anything out so it won't lose sync.

  • I am using an Airport Extreme for wireless and a Netgear VPN Switch for wired connections.  How do I get the two networks to connect?

    I am using an Airport Extreme for wireless and also have a Netgear VPN Switch (FV5318) for internal wired ethernet connections.  How do I get the two networks to connect to each other?

    Tesserax, I would like to keep the Airport Extreme in nplace before the Netgear FVS318 switch because I am using all of the 8 ethernet outputs distributed to 8 differerent locationsl  This way I can just use one of the LAN outputs from the Airport to feed the FVS318.  Here is what I think I am hearing you say:
    Tne reason why the wired and wireless devices are not communicating is because the FVS318G is also a DHCP server and in conflict with the AEBS.
    To remedy the situastion here is probably what I need to do in order:
    1. Change the LAN IP Address of the Netgear FVS318G to be the same subnet of the Airport Extreme.
    2. Then, disable the Netgear FVS318G as a DHCP server.
    3. Make sure the ethernet cable from the LAN port of the Airport Extreme connectis to the LAN port of the Netgear FVS318G.
    4. Restart everything.
    Can you provide me the steps I need to take to get the right IP addresses from the Airport Extreme to put into the Netgear to fix the conflict?  I have the Airport Utility.  I also have two airport express hot spots, and two Apple TVs in addition to computers attached to the 8 ethernet lines.
    Thank you.
    Steve

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • I accidentally erased a music album that I purchased on iTunes. How can I get the iTunes store to recognize that it is no longer in my iTunes library and download it again?

    I accidentally erased a music album that I purchased on iTunes. How can I get the iTunes store to recognize that it is no longer in my iTunes library and download it again?

    Delete the broken links in iTunes then look at your purchased list to redownload.
    If this happened because you were deleting files from the iTunes folder in Finder, don't.  You have to let iTunes do all the deleting and moving or you will end up with broken links.

  • How can I get the iCloud/iTunes password for my (now) deceased Father-in-Law's Imac?  I have a list of his passwords, but nothing works!

    How can I get the iCloud/iTunes password for my (now) deceased Father-in-Law's iMac?  I have a list of his passwords, but nothing works!  I know his email, but that account has been cancelled for security purposes, so we can't just request a new one.  I tried his security questions to no avail.
    Thanks

    Since that password is tied to his Apple ID, you will need to contact Apple; as far as I know, it will be a somewhat lengthy procedure and you will  need to furnish necessary paperwork (including a death certificate as far as I know). Best to either stop at an Apple store or call them to find out exactly what it is you need to do.

  • I deleted a calendar tab. How can I get the data back?

    I accidently deleted the calendar tab of my wife and deleted all her apoointments on her iphone and the iMac. I am in ****. How can I get the calendar data back=?

    Sync is only oneway, from PC to your device. Unless you have the music on your PC, iTunes is going to wipe out what you have on your device if you are syncing to a new library.
    You can only transfer Purchased music over to Itunes on your PC.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    As for you own music, you may have to use a third party software. A good Free one is called Sharepod which you can download from Download.com here:
    http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2

  • Can't install the software for the Brother MFC-9440CN because it is not currently available from the Software Update server....how do I get the driver then..it ised to work in my old mac..but cant print to it in my new unit

    Can't install the software for the Brother MFC-9440CN because it is not currently available from the Software Update server....how do I get the driver then..it ised to work in my old mac..but cant print to it in my new unit

    Download the Brother Mountain Lion drivers here.

  • HT2731 If i purchased coins on a game (doubledown casino) and did not get the coins, but was charged for them what do i do? How do i get the coins or my money refunded?

    If i made a purchase on a game(doubledown casino) but never got my coins, but the money was taken out of the account, what do I do? How do I get the coins or my money back?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How do I get the activity window in safari 6.0.2?

    How do I get the activity window in safari 6.0.2?

    Safari 6
    Activity Window is no more available in Safari 6.
    Apple removed that feature.
    Best.

  • How do you get the web application path from the servlet?

    I have created a web application which is installed in
    /webapps/myApplication
    /webapps/myApplication/data/users.xml
    /webapps/myApplication/WEB-INF/classes/myServlet
    How can you get the path to the "users.xml" file from the "myServlet" file?
    The code below doen's seem to return the xml file. anybody knows why?
    public class myServlet extends HttpServlet {
    public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException
    File myXmlFile = new File("/data/users.xml");

    Try this..
    String FileName = getServletContext().getRealPath("\\data\\users.xml");
    File myXmlFile = new File(FileName);
    hope this helps..

Maybe you are looking for