Get host name and ip addrees of the client machine for window VISTA

Hello Friends !!
I have write the following code to get the ip adress and host name of the client machine ..
it works fine for windows xp and 2000 but in vista it gives this type of out put.
host name = 0:0:0:0:0:0:0:1
ip addresss = 0:0:0:0:0:0:0:1
what i have to make changes in my code to get the proper ip address and hostname for vista...
My code is listed below....
code ::
InetAddress remoteAddress = null;
// Setting Host Name...
request.setAttribute("reportHostIP", request.getRemoteAddr());
// Setting Host IP Address...
try
     remoteAddress = InetAddress.getByName(request.getRemoteAddr());
     //This will give you the full qualified domain name of the client
request.setAttribute("reportHostName", remoteAddress.getCanonicalHostName());
catch(Exception e)
     logger.error(e.getMessage(), e);
}

BIJ001 wrote:
Is it not IPv6 by any chance?It is. And if I remember correctly, then "0:0:0:0:0:0:0:1" (or "::1" for short) is the IPv6-equivalent to "127.0.0.1", i.e. it's the loopback device.

Similar Messages

  • I need appleisightinstaller.exe to install the isight driver for Windows Vista running in Parallel Desktop 6 for Mac, but I don't have a Leopard DVD. What came with my Macbook Air was a flash stick "MacBook Air Software Reinstall Drive" only.

    I need appleisightinstaller.exe to install the isight driver for Windows Vista running in Parallel Desktop 6 for Mac, but I don't have a Leopard DVD. What came with my Macbook Air was a flash stick "MacBook Air Software Reinstall Drive" only.

    All,
    A very interesting NOTE to this thread. In order to try and get the "ignore permissions" box to show up in GET INFO (so I could execute Matt the Magician's solution to file sharing issues)-- I ran the terminal command for disabling ACLs on my internal HD / start up disk (as indicated in the linked thread to BDAqua's forum).
    Although I understand that this was useless for disabling permissions on the start up disk (as everyone here pointed out) and allowing me to see the "ignore permissions" check box - somehow it did seem to fix my file sharing problem...and that was the root problem I wanted solved in the first place! After doing the terminal command and a quick reboot, I went in and tested file sharing on the chosen directory and I can create new files or work from existing files in the directory, with both users being able to modify / and save from both machines and each machine sees the revisions and can build from them. Bottom line - I'm stoked and want to thank everyone for their help.
    The only other tweak I made was going over to my wife's machine and instead of using her log in / password, I just used my name and password to connect to my main machine that was sharing directories. Maybe that's what fixed the problem or the ACL disable but either way...I'm up and running the way I want to be.
    Hope this thread helps anyone else who has these file sharing / permissions issues with Leopard. Especially for anyone wanting to do such a simple file sharing set up between 2 computers. I wish I understood exactly which tweak fixed the problem, but at least it works the way I want now.
    So happy to be done w/this one!
    Thx everyone. Any additional input on what solved it is welcome, so my curiosity is quelled...
    TC

  • Getting host name and port number from application

    Does anyone know how I would be able to get the host name
    and port number from an application launched by java webstart ?
    This is the host and port of the URL that this application is launched from.

    A couple of suggestions:
    -The note is about 6.40. Doesn't fit for your server
    -Don't!
    -Reinstall!
    Regards,
    Benny

  • Getting host name and port number from an application

    Does anyone know how I would be able to get the host name
    and port number from an application launched by java webstart ?
    This is the host and port of the URL that this application is launched from.

    A couple of suggestions:
    -The note is about 6.40. Doesn't fit for your server
    -Don't!
    -Reinstall!
    Regards,
    Benny

  • Getting host name and IP address

    I have develop different types of forms which resides on server and clients are acessing it.Now from my end i want to track that which user is accessing my forms on the server i.e i want to know the client IP address and host name.When the user execute some query on the database then i will get it easily using sys_context function but if it perform some functions within the form and i catch the host name then it returns the server host name where the actual forms resides not the client host name and i want to know the client host name and IP address who is running the forms.Plz let me know the way so i can do that easily .
    thanks

    Hi Grant,
    I want to get ip/address host name of reports server, sitting on forms server.
    can you tell me how to do this.
    in a web base environment.
    i have several report server instances running on different machines.
    when i run a report using RUN_REPORT_OBJECT using report_server=mac_rep1
    i want to know mac_rep1 resides on which host/ip machine.
    regds

  • TS1717 iTunes will not start on my PC, I have been through all the suggested "iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues" to no avail.  Please help

    I am trying to get iTunes up and running again on my PC. I have followed the "iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues"  I have uninstalled, re installed, made a new user account gone through the system - wide fixes and still no joy.  There are 5 Ipod devices in the house and we deperatly need to get this fixed.
    Any help would be greatly appreciated
    Robert

    Refer to following articles to remove SC file(s):
    Win 7/Vista http://support.apple.com/kb/TS2363
    WinXP http://support.apple.com/kb/TS1776
    Then proceed to repair your Quicktime:
    Control Panel >
    Win7/Vista - Programs n Features.
    WinXP - Add n Remove Programs
    Hightlight QUICKTIME and click CHANGE then REPAIR.

  • How to get Host name and port inside UDF

    Hi,
    I want to access the Host and port in UDF to pass it to a link http://host:port/AdapterFramework/ChannelAdminServlet?party=&service=&channel=*&action=status dynamically.
    How can I acieve it?
    Manisha

    Hi
    With this code. I am getting error:
    try
    java.net.InetAddress addr = java.net.InetAddress.getLocalHost();
    String host = addr.getCanonicalHostName();
    catch (UnknownHostException e){}
    if (ProcessMode.equals("P"))
    try{
    String xyz="/AdapterFramework/ChannelAdminServlet?party=&service=&channel="Name"&action=stop";
    URL server = new URL("http", host, 8XXX, xyz);
    tring userPassword =Userid + ":" + Password;
       String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());
        URLConnection uc=server.openConnection();
        uc.setRequestProperty ("Authorization", "Basic " + encoding);
        BufferedReader br = new BufferedReader(new InputStreamReader(uc.getInputStream()));
         while ((inputLine = br.readLine()) != null)
         output+=inputLine;
        br.close();
    catch (Exception e){}
    ERROR:
    cannot resolve symbol
    symbol : variable host location: class com.sap.xi.tf._MM_CommunicationChannel_Stop
    _ URL server = new URL("http", host, 8xxx, xyz);
    ^ 1 error
    Any other way to get host and port?
    Manisha

  • How to get Host name and SQL Instance Name by T-SQL

    I am using SQL 2000, 2005 and 2008. I have few multi instances SQL servers. I would like to gather following information:
    Host Name
    SQL Instance Name
    SQL Version
    Server1
    Server1
    SQL 2000
    Server1
    Server1\ABC
    SQL 2005
    Server1
    Server1\XYZ
    SQL 2008
    Server2
    Server2
    SQL 2008
    Is there any way I can get it by T-SQL? Any help would be appreciated.
    Thanks
    Saumen 

    SELECT
    SERVERPROPERTY('MachineName') AS [ServerName],
    SERVERPROPERTY('ServerName') AS [ServerInstanceName],
    SERVERPROPERTY('InstanceName') AS [Instance],
    SERVERPROPERTY('Edition') AS [Edition],
    SERVERPROPERTY('ProductVersion') AS [ProductVersion],
    Left(@@Version, Charindex('-', @@version) - 2) As VersionName
     |
    Blog: MSBICOE.com |
    MCITP - BI, SQL Developer & DBA
    Hate to mislead others, if I'm wrong slap me. Thanks!

  • Query to get parameter name and value after ran the conccurent program

    Hi All,
    Query to get the parameter name and value for completed concurrent program using the request id. can any one help me in this regard.
    Thanks,
    Red.

    Red,
    I have tried the same query and it works properly here.
    I have submitted "Purge Signon Audit data" concurrent program with "Audit Date" parameter set to 01-06-2009, and here is the query output:
    SQL> select request_id, phase_code, status_code,
    argument_text, argument1
    from fnd_concurrent_requests
    where request_id = '739664';
    REQUEST_ID P S ARGUMENT_TEXT        ARGUMENT1
        739664 C C 2009/06/01 00:00:00  2009/06/01 00:00:00Regards,
    Hussein

  • How to get server name and/or IP address from client (10g)?

    Thanks.

    SELECT SYS_CONTEXT( 'USERENV', 'IP_ADDRESS' ) FROM dual;
    SELECT SYS_CONTEXT( 'USERENV', 'HOST' ) FROM dual;assuming you have a two-tier system (i.e. the client is actually making the connection to the database). If you have a three-tiered system, the middle tier would have to pass in this information.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • What is the next version for 'Windows Vista' after 'Adobe Reader 9.5.5' end of support on 6/26/13?

      After the recent update for ‘Adobe Reader 9.5.5’ the end of support for this version is June 23, 2013. This is installed on an edition of ‘Windows Vista Home Premium Service Pack 2’. System type: 32-bit Operating System.

      Thanks! Will automatic update select ‘Adobe Reader X’ after support ends for ‘Adobe Reader 9.5.5’ on June 23, 2013?

  • My iTunes on Windows 7 opens just once. If I close it and try to reopen, it won't open again. I have alreadytried solutions from the article "iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues". Please help.

    HI! My itunes on windows 7 opens once. If i close it, then it will not open again. I then need to turn computer off and back on and it will open again, once. I have tried troubleshooting with the article 'unexpected quits, freezes or launch problems' but that did not help. I have also tried disabling the Bonjour Service. No change either. Please advise. Thanks.

    Refer to following articles to remove SC file(s):
    Win 7/Vista http://support.apple.com/kb/TS2363
    WinXP http://support.apple.com/kb/TS1776
    Then proceed to repair your Quicktime:
    Control Panel >
    Win7/Vista - Programs n Features.
    WinXP - Add n Remove Programs
    Hightlight QUICKTIME and click CHANGE then REPAIR.

  • Can't install the latest itunes for windows vista basic

    I try to download the latest itunes 9, it will tell me to run or save, when i click save it shows that it is downloading but after an hour, it still shows 1%. I've tried this several times but so far i haven't had a error message as I usually shut it down because it takes too long.
    Please help! tried following the usual troublshoot solutions but so far nothing works

    Save to a different location. Or try a different browser.

  • How to get the Host name and port number

    Hi all,
    I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
    Regards,
    Vinoth

    Hi Kanagaraja,
    My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
    Thanks for your reply.
    -Vinoth

  • Change Host Name and IP Address on machine running WLS 9.2

    Hello,
    I am new to this community, so please forgive any unintended missteps.
    I have an installation of BEA WebLogic Server 9.2 running on Windows 2003 Server SP2. This installation is running on a virtual server, which was created using some VMware product that copies or clones production environments. The purpose of this new, cloned environment is to act as a development environment. This new DEV server has a different host name and IP address from the source PROD server.
    WLS is not starting up properly. It complains about the license.bea file not being valid. To try to fix that, I manually changed the IP address listed within that file, from that of the original system to that of the current system, but that did not change the error message I get during startup.
    I imagine that this instance of WLS needs to be re-licensed to account for the change in IP address. Besides that, are there any other configuration parameters in text files, registry settings, etc., that need to be modified in order to allow the new instance of WLS to work the same as the old instance?
    Please note that we want both DEV and PROD to run simultaneously, so we need to take steps to ensure they (and the applications running on WLS) don't talk to each other.
    I tried to search the BEA sites and found a few resources, but related to some other products (ALES?), not WLS.
    Thoughts, suggestions, feedback, or pointers to documentation would be greatly appreciated.
    Thanks,
    JPG.

    Hi JPG,
    The BEA license files are tied to IP address. Editing the license.bea to change the IP address file will not work.
    Any reason why you cannot use a 5 user dev license for your environment?
    If you break the 5 user limit then use IIS or Apache to front-end the the WLS instance.
    Cheers
    Mike

Maybe you are looking for

  • XML Report issue in R12 Upgradition

    Hi All, This is Narendra, Oracle apps technical consultant. Currently I am working in R12 upgradition project. I am facing a problem with standard report "Paybles posted Invoice register" Which was in pdf output format in 11i and xml output format in

  • RIM communication thru my work email

    I am getting these messages all day through my email at work, and want to know how to stop it. Can someone help??? This message is used to carry data between the BlackBerry handheld and an associated server. Please do not delete, move or respond to t

  • XI Components Missing

    Hi all,        When i created the business system with role as integration server, i got an error message that " technical system already has an integration  server, So it has to be declared as Application system". So i deleted the technical system a

  • Playing Atari games on Mac

    I love arkanoids and caterpillar from atari, and would love to play them on my Macbook 10.6.  Anyone know how to do this?

  • Reconnect in elements 9 before registering elments 11?

    I tried to 'reconnect all files',  but it appears that most of my library is now disconnected.  Is this because these photos are now moved to Revel?  If I register elements 11 without reconnecting them will the unconnected ones be displayed in elemen