• rxsock under Ubuntu Trusty

    From Jaime Cruz@21:1/5 to All on Tue Oct 10 18:44:13 2017
    Have a question regarding Open Object REXX under Ubuntu 16.04. I wrote
    the following quick and dirty script:

    #!/usr/bin/rexx
    /* REXX */
    If RxFuncQuery('SockDropFuncs') Then
    Do
    Call RxFuncAdd 'SockLoadFuncs', 'rxsock', 'SockLoadFuncs'
    Call SockLoadFuncs
    End
    Say SockGetHostId()
    Call SockDropFuncs
    Exit

    I expected it to return 192.168.1.154, which is my IPv4 address on my
    home LAN. It works under Windows7, but when I try to run it under
    Ubuntu it always returns 127.0.1.1

    What am I doing wrong?

    --
    Jaime A. Cruz
    President
    Nassau Wings Motorcycle Club
    http://www.nassauwings.org/

    AMA District 34
    http://www.AMADistrict34.com/
    Freddy's Run
    http://www.freddysrun.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From lee@lee-pc.not.real@21:1/5 to Jaime Cruz on Wed Oct 11 03:02:51 2017
    My first port of call there would be /etc/hosts. There's probably an entry
    for 127.0.1.1 pointing to the host name of your local machine.

    Lee.

    Jaime Cruz <Spammers@bite.me> wrote:

    I expected it to return 192.168.1.154, which is my IPv4 address on my
    home LAN. It works under Windows7, but when I try to run it under
    Ubuntu it always returns 127.0.1.1

    What am I doing wrong?


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jaime Cruz@21:1/5 to lee@lee-pc.not.real on Wed Oct 11 14:42:21 2017
    lee@lee-pc.not.real wrote:
    My first port of call there would be /etc/hosts. There's probably an entry for 127.0.1.1 pointing to the host name of your local machine.

    Lee.

    Jaime Cruz <Spammers@bite.me> wrote:

    I expected it to return 192.168.1.154, which is my IPv4 address on my
    home LAN. It works under Windows7, but when I try to run it under
    Ubuntu it always returns 127.0.1.1

    What am I doing wrong?


    BINGO!! That was it, thanks. I commented out that line and now it
    returns the proper IPv4 address.

    --
    Jaime A. Cruz
    President
    Nassau Wings Motorcycle Club
    http://www.nassauwings.org/

    AMA District 34
    http://www.AMADistrict34.com/
    Freddy's Run
    http://www.freddysrun.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)