NetTalk Central

Author Topic: Get local and external IP address  (Read 3671 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Get local and external IP address
« on: August 07, 2009, 05:15:09 AM »
Hallo,


On the login form I need to get the ip local or external ip from the computer that login on the system. I try to find in manual but nothing found about this..... I need to store every login with the local and external ip address.

Appreciate any suggestions,

Thank you ,

Robert Iliuta

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Get local and external IP address
« Reply #1 on: August 07, 2009, 05:57:52 AM »
Hi Robert,

Use p_web.GetSessionIP()
to get the ip number of the request.

To get the local address would require the use of either an ActiveX object, or a Java (not JavaScript) object. JavaScript cannot get the local address of the PC.

Cheers
Bruce

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Get local and external IP address
« Reply #2 on: August 09, 2009, 11:07:18 PM »
Hallo Bruce,


Thank you for help.


p_web.GetSessionIP() in a LAN will return the local IP and over the WEB return the exernal IP.

It is ok for me.

Thanks again,

Regards,
Robert