Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Is Detect IP Address of Thin Client User Possible?

Forum

Search UsersRules
Is Detect IP Address of Thin Client User Possible?
#1
Just came
Points:: 0
Joined:: Sep 17, 2018

Hi all,
I'm new here and if topic is duplicated i m sorry.

Is there a chance to detect ip address when user login to thin client?
I can get public IP via HTTPConnection with some services but i need local IP address.

Thank you in advance.

Profile
#2
Active user
Points:: 0
Joined:: Mar 29, 2016

Hi Ugur,

I think this code helps for you.

Function GetIP()
fResult = "";
ResponseFile = GetTempFileName("json");        
Try
HTTP = New HTTPConnection("api.ipify.org",,,,,,New OpenSSLSecureConnection());
HTTP.Get("/?format=json", ResponseFile);
Except
pError = BriefErrorDescription(ErrorInfo());
fResult = pError;
Return fResult;
EndTry;

JSONReader = New JSONReader;
JSONReader.OpenFile(ResponseFile);
Data = ReadJSON(JSONReader);
JSONReader.Close();
fResult = Data.ip;
BeginDeletingFiles(, ResponseFile);
Return fResult;
EndFunction

Profile
#3
Just came
Points:: 0
Joined:: Sep 17, 2018

Hi,

Yes this code might help but if client inside an intranet, it can't get local ip address. To find local IP I need to find / write an extarnal script on any programming language. So, as i understand there is no native solution inside 1C platform but many thanks for your help.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.