How To Get Network Adapters & Gateway Address

Hi,
I need to get and alter the local PC's IP address and Gateway address.
I know how to get the IP address using InetAddress, but I have a few questions.
1) Is is possible in Java to change the local PC's IP address?
2) Is it possible and if so how do I obtain the local PC's Gateway IP address
3) Is there a way of showing all the Network adapters within a PC?
This will be used on Windows XP operating system if ths makes any difference.
Many Thanks

2/ Hello I've submitted a method to retrieve the gateway ip on [http://forum.java.sun.com/thread.jspa?threadID=5289135|http://forum.java.sun.com/thread.jspa?threadID=5289135] , it does work under windows and linux (I haven't tested on other os yet)

Similar Messages

  • How to get  Network Interface Cards information ?

    hi all,
    how to get Network Interface Cards information and tcp window size by java ?

    807262 wrote:
    how to get Network Interface Cards information Have a look at [url http://download.oracle.com/javase/6/docs/api/java/net/NetworkInterface.html#getNetworkInterfaces%28%29]NetworkInterface.getNetworkInterfaces()
    tcp window sizeWhich one?
    SO_RCVBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getReceiveBufferSize%28%29]Socket.getReceiveBufferSize()^
    SO_SNDBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getSendBufferSize%28%29]Socket.getSendBufferSize()^

  • HT5312 I forgot the Security question in my email account, How to get a rescue email address?.

    I forgot the Security question in my email account, How to get a rescue email address?.

    You can go to the phone number for your country from http://support.apple.com/kb/HE57 and ask to speak with Account Security, or you can go to the ExpressLane at https://expresslane.apple.com and then iTunes, then iTunes Store, then Password and Security Questions and fill out the form.

  • How to get Ship to Location Address?

    Hi Guys,
                 Can anybody tell me how to get Ship To Location Addresses?
              Bill to Party Addresses also?
    Thanks in Advance,
    Gopi.

    for bill-to-part check table kna1.
    select name1 land1 ... from kna1 into corresponding fields of wa where kunnr = <bill-to-party-no>.
    endselect.
    do the same for ship-to
    plz reward points if dis helps
    Message was edited by:
            user_15

  • WebGUI: How to get the users IP-address

    Hello.
    I have to develop a simple web-application, that will enable users to reset their forgotten passwords or to unlock themselves, if they are locked because of too many failed login-attempts.
    As you can imagine, this application must not require a login. For security reasons any action has to be logged.
    The username can not be used for logging-purposes, as the application is executed using a default-user defined in transaction SICF. That's why the IP-address of the user's pc has to be written into the log-table.
    My problem is, that i do not know how to get it. I have read many articles on help.sap.com, searched in the sap notes, used Google and tried to find usefull functions in our SAP-system, but after two days it still does not work and i do'nt know, what else to try.
    At the moment i am able to read the name of the client-pc with my test-coding.
      DATA:    lv_webgui TYPE xfeld.
      STATICS: lv_computer_name TYPE string,
               lv_username TYPE string.
      CLASS: cl_gui_frontend_services DEFINITION LOAD.
      lv_webgui = cl_gui_frontend_services=>www_active.
      IF lv_webgui EQ gc_true.
        " Begin of experimental coding #1
        CALL METHOD cl_gui_frontend_services=>get_computer_name
          CHANGING
            computer_name = lv_computer_name.
        " End of experimental coding #1
        " Begin of experimental coding #2
        CALL FUNCTION 'ITS_ENV_GET_VARIABLE'
          EXPORTING
            variable = 'COMPUTERNAME'
          CHANGING
            value = lv_computer_name.
        " End of experimental coding #2
        MESSAGE s000(38) WITH lv_computer_name.
      ENDIF.
    The problem is, that the Internet Explorer 7 (version: 7.0.5730.13CO) shows a warning before the scripts, generated by the ITS, are executed on the client. If the user clicks "abort", the scripts are not executed and the name of the client-pc will not be returned to the server (experimental coding #1 returns the value 'localhost', experimental coding #2 returns an empty string).
    That's why the experimental coding is quite useless, because the user is able to avoid it's execution.
    In theory i could use experimental coding #2 and stop the execution of the program if an empty string is returned but some users in our company have administrator-privileges and so they can change environment-variables at will. So i am afraid, that this procedure is not an option.
    I am quite sure, that there must be a way to read the IP-address directly from the ITS without using the functions in my experimental coding, but i have no clue how this could be done.
    Any suggestions would be highly appreciated.
    As i do'nt know how to determine the version of our ITS, i have to leave this information out for the moment. If anyone needs this information it would be very kind, if he or she could tell me how to get the required information.
    EDIT: As we are using SAP ECC 6.0 and Services are maintained via transaction SICF, it should be ITS 6.40.
    Regards
    Jörg Neumann
    Edited by: Jörg Neumann on Oct 16, 2009 1:27 PM

    Hello Wolfgang.
    Thanks for your reply.
    I can imagine, that the application as described above seems to be very insecure, but the description is not complete - i left some parts out, as they were not relevant for my problem.
    1.) The application can only be reached from our intranet.
    2.) Unlocking / Resetting password can be done three times per day, which limits the number of attemps for cracking a password to a total of 20 per day.
    3.) The owner of the account will receive an email if the acount was changed by the application. So if somebody tries to crack the password, the owner of the account will get a total
    20 3 mails per day - which should make him/her at least a litte suspicious. 
    I know, that the logged data is quite worthless, as computername and username are read using clientside-scripting and there could be a proxy between the client and the server, but this is exaclty, what i have to develop.
    I will keep the logging-problem in mind and talk about it in the next meeting, though i am quite sure, that it wo'nt change anything.
    Regards Jörg Neumann
    Edited by: Jörg Neumann on Oct 19, 2009 4:57 PM

  • How to get rid of duplicate addresses all over the place?

    Duplicate addresses appears all over the places: on my mac (in the mail program) and in my ios devices.
    I suspect that it occurs during some synchronisation activities but how to get rid of this once and for all?
    Thanks for your help. It helps also if some tell me that I am not alone in that kind of trouble

    iCloud- Resolving duplicate Contacts after setting up iCloud Contacts

  • How to get network IP camera of images or media ?

    Please tell me how to use jmf to get network IP camera of images or media?
    if you can provide source code, send me please
    my e-mail: [email protected]
    thanks!!&#8857;&#969;&#8857;

    Hi
    m also doing almost same work..wht u r tryied to do. I got the JMF-code, which capture video from webcam & split it in to Frame. But don't know how to capture video from ip-camera.....Can u help me...???

  • Anyone figured out how to get rid of the address bar tooltips??

    I asked this about a year ago. One guy responded with some editing tips using the developer tools, but did not mention how to get to the files to edit them (he was recommending using Interface Builder). I cannot understand why there isn't a preference setting to disable all tooltips in Safari. I find them to be extremely annoying & want them to go away. So, if anyone knows how to make them disappear, your help would be greatly appreciated. Thanks in advance.
    **NOTE** I am not referring to the information popus that are part of some web pages (although it would be nice to eliminate those as well). I am referring to the little yellow rectangles that pop up when you hover over things like the stop button, refresh button, address bar, etc. I do not need to be told what those buttons or areas do, so I want this annoyance gone. **NOTE**

    Have a look at this macosxhints Forum thread. Otherwise, I haven't seen a way to remove these annoying pop-ups. I've sent feedback to Apple in the past. Perhaps you might want to add your voice via this link.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.8)   LaCie 160gb d2 HD Canon i960 printer

  • How to get Network headers from Project definition in PS module?

    Hi All,
    I want to get all network headers under a project definition. Please let me know how to get them?
    Do we have any BAPI for that?

    Check these BAPi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_NETWORK_GETDETAIL

  • How to get location for an address using MKMapKit framework?

    Hi
    Can anybody help me, How can I get location/coordinate from address using MKMapKit framework?
    Thanks

    You have your answer iPhone warranty is NOT international it only covers
    the county of Purchase in your case the US
    You will have to take it back to an Apple Store in the US

  • How to get an iCloud email address?

    I want to get an iCloud email address (@icloud.com) for several reasons, among them:
    To streamline my iCloud account access so only that email is associated with iCloud & its services.
    To provide email between Apple (e.g. Apple Support) and myself
    To be able to use Notes
    Currently, I am using the same Yahoo email address for both iCloud and iTunes.
    However, I wonder if I can give those up and replace them by the iCloud.com email address?
    Some details: I got a new-to-me iPhone a few weeks ago, which was reset, and so the only apps
    on it are the default iPhone apps. I have not added any apps.Therefore, I don't mind having to do
    another reset as long as I save the few photos and some phone number contacts to a Vcard.
    Could I create a new iCloud email address and use that exclusively after reseting the iPhone?
    I could restore the contacts and photos from the computer.

    JacobianWife wrote:
    What if I were to wipe the phone clean, and start from scratch, never using my current Apple ID at all, but then activate iCloud to get an @icloud.com email address?
    Yes, you can do that - please see imp68's post here:
    Re: I wish to transfer my Apple ID to a new iCloud account
    If you do this, it's vital that you create a 'rescue address' which is a non-Apple address, because if you don't and something goes wrong with the account - for example if you forget your password - Apple can only contact you at the iCloud address which youy can't access.

  • How to get Vendor number form Address number

    Hi all
    I need help in getting vendor number using address number. I need best performance in this process.
    I have tried
    select single lifnr
      from LFA1
    where adrnr = address
    put this is not good in performance.
    Do any one know better way?

    Hi Salam
      As your requirement is
    <b>address > ????? > LFA1</b>
    Dieter has provided ADRV to replace "?????" in the above.
    so it is address > ADRV > LFA1.
    Substitute <b>address number</b> for field ADDRNUMBER, <b>'LFA1'</b> for field APPL_TABLE in table ADRV to check the result in field APPL_KEY which is combination of key fields in table LFA1 i.e MANDT and LIFNR.
      Please award points to Dieter for this wonderful tip.
      Thanks for the tip Dieter.
    Kind Regards
    Eswar

  • How to get the vm ip address in scvmm 2012

    Hi,
    I want to get the vm ip address in scvmm 2012, who can help me?

    I have seen lots of people ask this because they can see IP addresses in other Virtualization Consoles, Unfortunately SCVMM doesn't show IP address of the VMs on the console but you can use below script to populate Custom1 property of VMs with IP address
    and make Custom1 Column visible (manually) in SCVMM Console... HTH
    param ( $VMMServer = 'localhost')
    $CustomProp = Get-SCCustomProperty -Name Custom1
    $VMs = get-SCVirtualMachine -VMMServer $VMMServer
    foreach ($VM in $VMs)
     $NetAdp = get-SCVirtualNetworkAdapter -VM $VM.name
     if ($NetAdp.IPv4Addresses)
     [String[]]$str = $NetAdp.IPv4Addresses
     Set-SCCustomPropertyValue -CustomProperty $CustomProp -InputObject $VM -Value "$str"
    Disclaimer: The sample script is provided AS IS without warranty of any kind.

  • How to get Network Printing to work with Brother!!

    So i have my BROTHER DCP-7020 printer connected to my Windows machine and i've been sharing the printer on the network with my old iMac 24' which prints perfectly. Now i have the 27' imac and i have no idea why it won't do printing via network, plugging in USB works fine, i've installed the driver but it doesn't look like it did anything. It just worked on my 24' without any hassle, it gets detected in the "Printer Settings" automatically and i dont recall doing anything to get it to work before.
    Can anyone give me some tips of why it won't print and what I need to do in order to get network printing to work on my new Mac?
    By the way BOTH MACHINE runs SNOW LEOPARD.
    Thanks in advance.

    Here's the troubleshoot: http://support.apple.com/kb/HT1404
    And here is the manual method: http://support.apple.com/kb/HT3049
    Hope this helps!

  • How to get a new email address

    Hi. Can you tell me how to make a new email address? I think I mean alias. When I had my .mac account I could make up new @mac.com addresses (which I think just funneled mail on to my "real" @mac.com address
    I have had a look around in the new mobileme and I can't seem to find anywhere to do it. I'm really hoping it hasn't disappeared!!!!

    Please see http://homepage.mac.com/rfwilmut/notes/mobileme.html#alias

Maybe you are looking for

  • Is there any way to create or edit existing playlists in the Cloud?

    As an example, all Beethoven symphonies should be in a playlist, in order by number.  Is there a way to do this in the Cloud?

  • Goods receip based on Gate entry.

    Hello experts, As per our existing procedure gate entry is done in regiser upon receipt of material from vendor.Then material is moved to store.Based on this gate entry only goods receipt is expected to be done in SAP.How this can be captured in SAP.

  • New 8 Core Mac Pro Question

    What will the 8 Core Mac Pro do for Aperture? I know you need 4 gig of ram and the ATI video card. I am just curious about what processor to purchase. I find that Exporting images from a wedding of 800 or so images takes about 2.5 hours on my G5 Dual

  • Movement types 631 & 661

    All, In which transactions we will use movement types 631 and 661 ? These cannot be used in MB1A,MB1Cand MB1B . So where this can be used ? regards

  • Is it possible to tune this query.....

    This query takes 10 minutes to run on Windows 2003,raid10,Oracle 10.2.0.4.Is there any portion i can look into optimize the query.. Removing the query.. Edited by: Maran Viswarayar on Nov 13, 2009 1:51 PM Edited by: Maran Viswarayar on Nov 16, 2009 2