Symptoms or Error
Solution
For any such applications on XenApp Server, you can use UseClientIP for the application to work properly.
Problem Cause
??
UseClientIP does not give any virtually assigned IP address to the session at glance. So you cannot tell if the UseClientIP registry modification actually works from the session information on AppCenter or?? from netstat command within the session unless a published application in the session shows the related information for it.
??
To confirm it, publish GetIP.exe with the registry modification for UseClientIP. Once you launch GetIP.exe as a published application, you can see your client local IP address assigned in the “IP address” field.
??
This IP address is taken from the gethostbyname function from Winsock. Some applications use a gethostbyname type function to get an IP address for identification purpose. If you have such applications on XenAppServer, you can use UseClientIP for the application to work properly.
??
MSDN https://msdn.microsoft.com/en-us/library/windows/desktop/ms738524(v=vs.85).aspx indicates this function has been deprecated and getaddrinfo should be used. The below function used by the application is returning the IP address of the host. You will need to use an equivalent of the gethostbyname or getaddrinfo in the application.
??
REMOTE_ADDR (10.196.97.102) and System.Net.Dns.GetHostEntry = servername1.com
REMOTE_HOST (10.196.97.102) and System.Net.Dns.GetHostEntry = servername2.com
Request.UserHostName (10.196.97.102) and System.Net.Dns.GetHostEntry = clientname1.com
NET implementation of GetHostByName is (System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).
Additional Resources
What is Virtual IP and its uses
The virtual IP address feature provides a unique IP address to each session. Moreover the virtual loopback feature allows to configure applications that depend on communications with localhost (127.0.0.1 by default) to use a unique virtual loopback address in the localhost range (127.*).
Certain applications, such as CRM and Computer Telephony Integration (CTI), use an IP address for addressing, licensing, identification, or other purposes and thus require a unique IP address or a loopback address in sessions. Other applications may bind to a static port, so attempts to launch additional instances of an application in a multiuser environment will fail because the port is already in use. For such applications to function correctly in a XenApp environment, a unique IP address is required for each device.
How to Set up and Configure Virtual IP for XenApp 6.x : http://support.ctx.org.cn/CTX137163.citrix
How Virtual IP works : http://docs.citrix.com/en-us/xenapp-and-xendesktop/7-6/xad-deliver-virtual-ip.html
IP virtualization on RDP : https://technet.microsoft.com/en-us/library/dd759263.aspx
Disclaimer
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.