Skip to main content

IP Address

  • December 9, 2013
  • 3 replies
  • 0 views

Is there a way to get the IP Address from the HTTP header in a web screen written with Net Express?  We'd like to capture the IP Address of people using our system for logging purposes.


Thanks!

3 replies

  • December 9, 2013

Is there a way to get the IP Address from the HTTP header in a web screen written with Net Express?  We'd like to capture the IP Address of people using our system for logging purposes.


Thanks!

I should clarify ... I want to get the CLIENT IP address.


Chris Glazier
Forum|alt.badge.img+3

Is there a way to get the IP Address from the HTTP header in a web screen written with Net Express?  We'd like to capture the IP Address of people using our system for logging purposes.


Thanks!

You should be able to get this type of information by reading the HTTP environment variables into your program using accept/display syntax.

example:

01 ip-address   pic x(256) value spaces.

   display "REMOTE_ADDR" upon environment-name  

   accept ip-address from environment-value    


  • December 9, 2013

Is there a way to get the IP Address from the HTTP header in a web screen written with Net Express?  We'd like to capture the IP Address of people using our system for logging purposes.


Thanks!

Chris - that did the trick.  Thanks for the help.