Get the IP address of the client from the view

I have a code that uses the API well established WTSQuerySessionInformation() (http://msdn.microsoft.com/en-us/library/aa383838 (VS.85) .aspx) call, through the argument of WTSClientAddress, to retrieve the IP address of the client that is connected to an RDP session.

When this code is executed in a View (on XP SP3) session, it still returns 127.0.0.1 rather than the IP address of the client that connects to the session of the view. If I disconnect the session View and reconnect to the same user via a console RDP session and then the IP address of the client is successfully returned. With the help of the WTSClientName argument to return customer name always returns the name of correct client that the session is connected via RDP or the customer to view.

Anyone got any ideas how to retrieve the IP address of the client please? No doubt must be mailed to a community developer, but I can't find really relevant.

What is happening because of the tunnel from the view, because only in tunnel mode, the RDP control connects to 127.0.0.1 (on the client side) and the socket connection then integrated on the remote side. Session information are filled with the information provided by the RDP client, where the difference.

We intend to address this issue in a future version of VMware View by providing various information on the client address environment variables available in the RDP session, including the client's real IP, for example:

ViewClient_Broker_DNS_Name = broker.foo.com

ViewClient_Broker_Remote_IP_Address = 1.2.3.4

ViewClient_Broker_Tunneled = false

ViewClient_Broker_URL =https://broker.foo.com:443

ViewClient_IP_Address = 5.6.7.8

ViewClient_LoggedOn_Domainname = FOO

ViewClient_LoggedOn_Username = user

ViewClient_Machine_Domain = bar

ViewClient_Machine_Name = baz

ViewClient_MAC_Address=00-12-34-56-BE-EF

ViewClient_Type = Windows

Tags: VMware

Similar Questions

  • How to get the view of entity impl and get app module

    I want to know how to access the entity Imp Appmodule as I want to call the entity Impl Module application method.
    And I want to how to call view also entity impl object to get the value of the view attribute object.
    I want to get view object and entity Impl App Module to use in validation

    If you need validate, write this method in the implementation class entity itself. There is no point in writing this method in the app module and call this method from the entity, it's a bad habit. If you want to get some values of a VO, define view accessor in the EO. Through the accessor, you can see the required values.

  • Help! That should get the view or the "rocket"?

    Please answer quickly.

    OK, I want a mp3 player that is good for video and some songs (especially for the video, but I even when listening to my songs.)

    I searched and researched and I finally found 2 mp3 players match my needs. The sansa view and sansa fuze. But I don't know what to choose. Remember it must be good for the video and songs.

    Thank you and I hope for good results

    Take this link and go where it happens a real conversation.  You'll find more because more people responded and I have the solution. which, if you do not want to take the link is I'm going to buy the view see how it is and if it is bad I will return.

    Also take a look at this.

    It 'can' owners view intrest.

  • Exception of null pointer so that he was trying to get the view inside the AM object

    Hi all

    I use jdev 11.1.2.2
    I try to create the session of the application
    but the view object is thrown null pointer exception even if the view object is available within the impl class
        protected void prepareSession(Session session) {
            LOGGER.log(ADFLogger.TRACE, "Preparing the user session...");
            super.prepareSession(session);
          String emailId = ADFContext.getCurrent().getSecurityContext().getUserName();
            LOGGER.log(ADFLogger.TRACE, "Setting the user-context - app_user_lang on the database...");*/
            
               ViewObjectImpl UserAuthentionEVO =  this.getUserAuthenticationEVO();
              UserAuthentionEVO.setNamedWhereClauseParam("The_EmailId", emailId);//Throws null pointer exception
                UserAuthentionEVO.executeQuery();
                Row row= UserAuthentionEVO.first();
                 if (row != null) {
                getSession().getUserData().put("USER_ID", row.getAttribute("UserId"));
               getSession().getUserData().put("ROLE_ID" , row.getAttribute("RoleId"));
                 }
        public ViewObjectImpl getUserAuthenticationEVO() {
            return (ViewObjectImpl)findViewObject("UserAuthenticationEVO");
        }
    this.getUserAuthenticationEVO () returns null

    Why is what is throwing the error?
    No idea why its pointing to null?

    Thanks in advance,
    Rakesh

    Published by: Rakesh on July 4, 2012 07:22

    Because of the hierarachy?

    Your test case shows apparently so.

    What I am doing wrong?

    I wouldn't say that you're doing something wrong, just that ADF BC apparently does not support your use case. Use straight JDBC (even to call a stored procedure if you want to instead of using the SELECT statement) and problem solved.

    John

  • The sight of my computer has been partially reduced to a minimum and can not get the view full screen. All around the page view is black. Help!

    My view of the Office was "restored to the bottom" permnantly and it cannot be changed. What I discovered on the computer remains low and impossible to get an overview

    Hello Noidea,

    1. When you say restored down, do you mean to say that it is minimized in the taskbar?

    2. did you of recent changes on the system?

    Method 1:

    You can try to change the resolution of the screen and check if it helps.

    Change the screen resolution

    Method 2:

    If it is a recent issue and then try to perform a restore of the system to a prior restore point you have been affected by the issue.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following link:

    How to restore Windows XP to a previous state

  • How can I get the viewer photo and fax for windows on windows 7

    my computer does not have windows fax and picture viewer but has the windows photo viewer. Unfortunately the windows photo viewer is not moving images.

    I need help

    Thank you

    Have you tried the free software IrfanView to view your animated .gif files?

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView and IrfanView plugins
    http://www.download.HR/download-IrfanView.html
    (scroll down a bit for the download links)
    (Download plugins too)

    To display .gif inches open IrfanView and go... File / thumbnails... and
    Navigate to the folder in which the .gif files are archived. Double click left one
    .gif to see Animate in the main display window.

    It is also available for free download at the following link which may be worth a try:

    Windows and Windows 7 - animated gifs photo viewer "gifview.exe."
    http://www.SevenForums.com/music-pictures-video/39095-animated-GIFs-Windows-Photo-Viewer.html

  • When I click on address book I no longer get the slot to insert a name, instead a long list of names/addresses

    I sent this way new emails (not responses): click on address book. Place comes the space to insert a name. I do, find the name (among some close to it), select it and then click on "write". The result is an email address, which I proceed to write and send. But since there is one day, when I click on the address book, what appears is a long list of names and email addresses. It fills most of the screen of the iMac. And there is no space to insert a name.
    Without doubt, I did something stupid to get there. What have I done? And how I turn the tide?
    Thank you.
    Arthur

    This isn't answering your question on what is wrong.

    I think that the address book is a pretty lame place to start.

    Click on write or reply or forward and window of writing messages appears. pre-populated with the text of the previous message if it is a reply or forward.

    If you select the To: box and start typing, it will feature names in the address book corresponding to what you typed.

    If you really prefer to choose from a list, you can open a Contacts Sidebar which lists one of your address books. There are buttons to add Contacts selected to your message. You can drag and drop and use right click too. On a PC, F9 opens this sidebar, or you can use alt + v to get the view menu and choose the Contacts Sidebar in the submenu. I don't know how much it works on Mac.

    It is so easy to add multiple addresses. You can set them as Cc or BCC.

    Your method allows you to send a new message, but does not support the answer or transfer. It penetrates into all recipients regarding: and you have to change one by one, if that is not appropriate.

    You see why I think that the address book is a bad place to start from?

    If this alternative approach does not work then I suggest that corrupted address book. You have a recent backup to restore from?

  • The address bar has disappeared from the top of a tab object that I opened. How can I get it back?

    The address bar has disappeared from the top of any tab, I opened, so there is nowhere to enter a web address. Could I have accidentally made it happen? How can I get that back?

    Just to be clear, it is not on the tab bar is? (It's the new style in Firefox 4 and 5).

    To show or hide the toolbars, you can use the old view menu.

    If you have the orange Firefox button, press the Alt key to temporarily show the classic menu bar.

    Menu view > toolbars > check the Navigation bar

    If you view the navigation toolbar, but it is incomplete or damaged, you can reset your toolbars.

    Menu view > toolbars > customize

    In the great dialog box with the icons, to the bottom, click on restore by default.

    Does this help?

  • How to get the IP address of the client when TCP connect on the server

    How to get the IP address of the client when TCP connect on the server.

    The only parameter obtained the login is the login ID.

    I assume you are using "Wait of TCP on the listening port" on the server. This returns the remote address and port (like out in option).

  • How can I get my [* address email is removed from the privacy *] email and folders back which took me about a month ago?

    About a month there is a Monday morning my email and folders disappeared, some overseas has my contact list send email hooks in my contact list, ask for money to get home, and I did not even leave the House. All my contacts called early this morning to let me know. Well well my email address [* address email is removed from the privacy *] and my password was gone. Important files and photos in folders also disappeared. I tried to get them through windows live help and still cannot get back them. They are lost forever, or I do something wrong? How to make a comeback?

    Hello

    You will need to create a post on www.windowslivehelp.com for any question / help with the Windows Live programs and services.

  • I'm stuck on my * address email is removed from the privacy * email account I am still getting this error code 80048823 I can help get this problem?

    I'm still stuck on my * address email is removed from the privacy * e-mail account. I get this error code 80048823. Can I get help with this problem?

    Hi Rutherford,

    Since the problem is related to Windows Live, you can also send your query to Windows Live Solution Center.

    Portal - Messaging Windows Live Solution Center

  • Registry files have been deleted via a Norton 360 3.0 registry clean up - can't get an ip address from the router

    I'm running Vista Ultimate, -connection (Ethernet) with Verizon FIOS I ran a Norton registry clean and foolishly trust what he says to remove.

    At first, all of my USB cards have been screwed up (noted in the Device Manager with exclamation next to each one points)
    I did a system restore and that corrects this problem, but now I'm having a problem with my network card.
    , All diagnostic tests, etc. show that the material is very good. My router is also fine the problem is that windows can't get an IP address from the router and then assigns his own
    (a # 169 instead of a # 192)
    In the network connection properties, it says that the device is functioning correctly, and the driver is up-to-date.
    'Connection speed' tab: a window of diagnosstics is: I ran testto test adapters connect to connect to the network.
    Results: connection Test
    Test details:

    I have "this card is configured to obtain an IP address automatically. No DHCP server is present on the network. Windows selected an IP address by using the alternative private IP addressing. »

    X "Ping 0.0.0.0 Gateway: failure.
    !  "No DNS server is available for this connection.
    ! "No WINS server is available for this computer.
    X "Ping 0.0.0.0 network: failure.
    ------------------- -------------------------------------------------------------------------------------------------------------
    In this same window of diagnostics under the "LinksTab".
    Link current test status: (what is determine the current connection speed of the adapter and link partner)
    Results:
    ! The adapter is configured to negotiate the speed with the link partner, but 1000 Mbps was chosen as one of the possible speeds.

    The best link options-results of the speed test:
    ! Could not detect way reliable speed and duplex settings. Possible speed/duplex settings are 100 Mbps Full Duplex and Half Duplex 100.
    (Note that these link tests are online and I can't online)

    Also in the Diagnostics window-under the 'Cable' link cable - past-polarity is normal.
    Depending on the tab is the Hardware tab
    Hardware diagnostics check for I/O conflicts...
    Results: all the tests:
    EEPROM test
    FIFO test
    Test register
    Interruption of the tests
    Loopback test

    I also went in the prompt type in IPCONFIG... c which shows:
    Ethernet connection to the Local network card:
    ConnectionSpecific DNS suffix: (it's completely empty here)
    Link-local IPv6 address: fe80::bda9:951 d: 619f:a0dc 9%
    Autoconfiguration IPv4 address: 169.254.160.220
    Subnet mask: 255.255.0.0
    Default Gateway: 0.0.0.0

    I also have a sort of ping command here-cant remember the command, but the results were in the CBS... I didn't know how to reach. He however escape from something on the registry files.

    I went throughD-Link Tech router (router) support is good, Fios Tech support everything set up right, - Norton support(Norton denies that the files were not to be touched-although their report shows these registry files were deleted)-Dell Tech support because my warranty missed 3 weeks ago - although I still have the "your Tech Support team until 2013 - which is valid only if you have a hardware warranty-made no sense sold me the car without. the engine - directed the FTC to bring a complaint about it - after I get this fixed number.

    I hope someone can help... by the way I get perfectly in line with my laptop - I know this isn't my router. I'm sure it's due to some registry files being moved-(j'ai eu deles de messages d'erreur indiquant que les fichiers de Registre ont été endommagées ou manquantes) what do I do now? No system restore to restore this part of the register - I also installed the drivers from the dell drivers and Utilities disc - but maybe I've done that correctly? I put the disc - extract files-(he says they have been unpacked) was a new step for me to do after that? Help, please!
    Thank you!

    Hello
     
    We recommend that you install the router (see its manual) and the pilot of NIC once more and check the difference. In the first post, you mentioned that you decompressed or extracted files. Once the files are extracted, you will be asked to install the driver. However if you do not receive any prompts for the driver, then you will need to locate the destination folder where the files are checked to find the configuration file.

    Open the destination folder where the files are extracted and run the Setup file to complete the installation.
     
    To download and install the latest network card driver, visit the site Web of the manufacturer of the device or system.
     
     
    I hope this helps.
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.
  • Error: "this meeting uses computer audio (VoIP), computer audio is not available with this console, which is based on the Web." To get the audio from the computer, please install the Microsoft Office Live Meeting client. »

    Hello

    I have a problem with Live meeting 2007. I'm organizing a live meeting with people from different countries. Some of them cannot hear anything and can not use the microphone. They get this kind of error:

    "This meeting uses computer audio (VoIP), computer audio is not available with this console, which is based on the Web." To get the audio from the computer, please install the Microsoft Office Live Meeting client. »

    I tried to look for a solution, but I did not understand what Live Meeting I need to download.

    Can you help me?

    Thank you.

    Original title: Live Meeting 2007

    Hi Alex,

    Thanks for posting your query in Microsoft Community.

    I understand your concern. In this case, I suggest you refer to the Microsoft TechNet article following which sets out the series of frequently asked questions related to Live Meeting 2007 and check if the solutions are useful.

    FAQ: Live Meeting related topics media

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • Client cannot get the external IP of DHCP address through WiM

    WISN 5.2.178.0

    6509 12.2 (33) SXH2a

    WISN is in place, 1231 & 1131 joined APs, radio stations upwards, the customer associated but not an IP address.

    Virtual interface with vlan # & IP on the destination VLAN.

    WLAN with same vlan # as above.

    I tried Open, PSK, WPA. Client cannot obtain an IP address.

    What did I miss?

    You have the virtual address set to 1.1.1.1?

    Also, you have set up the address of the DHCP server on your interfaces VLAN? This is important because the controller basically uses an ip helper address to properly forward DHCP requests.

    If you have these configured, try to use the internal DHCP server to test. The web GUI, access controller-> the DHCP server in-house. Configure a DHCP scope and activate it (don't worry, it is only used for wireless clients. It does not meet the DHCP requests on your network).

    Now, go back to the controller-> Interfaces and configure the DHCP server to the management interface of the controller. See if your customers are able to get the addresses of the internal scope.

  • Problem to get the IP address of the Client on ADF

    Hi all

    I use jdev 11.1.1.7.0 version

    In my case, I created a stubborn taskflow and deploy it to Webcenter.

    In this application I wrote the code for the customer as follows - ip address

    ExternalContext ectx is FacesContext.getCurrentInstance () .getExternalContext ();.

    HttpServletRequest request = (HttpServletRequest) ectx.getRequest ();

    String ip = request.getRemoteAddr ();

    but he returned

    127.0.0.1

    or in my env production he return server ip address.

    so my question is what is the problem with this code, why is not the ip address of the customer return

    or any other way to do

    concerning

    Manish

    This is a configuration on the weblogic server. You do not get the address of the default client. You must make a few changes to the configuration of your wls (see getting the IP address of the application client). If you do this, you should be aware of the implications that you find in the blog http://www.ateam-oracle.com/wls-plugin-enabled/

    Timo

Maybe you are looking for