Kirk,

You want *Get database parameter *command.

The selector 16 (IP Address to listen) lets you get the IP address on which
the 4D Web server receives HTTP requests. The following example splits up
the hexadecimal value:

   *C_LONGINT <http://www.4d.com/jp/docs/CMU/CMU00283.HTM>*($a;$b;$c;$d)
   *C_LONGINT <http://www.4d.com/jp/docs/CMU/CMU00283.HTM>*($addr)
   $addr:=*Get database parameter*(*IP Address to listen*)
   $a:=($addr>>24)&0x000000ff
   $b:=($addr>>16)&0x000000ff
   $c:=($addr>>8)&0x000000ff
   $d:=$addr&0x000000ff


On 15 January 2017 at 19:48, Kirk Brooks <lists.k...@gmail.com> wrote:

> I thought I saw this recently but I can't find it now - given a copy of 4D
> running the web server how can I get the IP address it's listening to?
>
> I thought WEB GET OPTION would do it but it doesn't dynamically (it only
> seems to return whatever value WEB SET OPTION installed).
>
> Thanks
> --
> Kirk Brooks
> San Francisco, CA
> =======================
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to