• Getting the BBS IP address

    From Codefenix@VERT/CONCHAOS to All on Fri Sep 8 07:57:57 2023
    If I want to know the IP address of my own BBS, is this the simplest/best way to go about obtaining it?ãã resolve_ip(system.inet_addr)ããJust making sure I'm not overlooking something simpler.ã ã|01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07ã ãã...A critic is a legless man who teaches running.ã---ã þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-ã
  • From Digital Man@VERT to Codefenix on Fri Sep 8 13:03:12 2023
    Re: Getting the BBS IP addressã By: Codefenix to All on Fri Sep 08 2023 07:57 amãã > If I want to know the IP address of my own BBS, is this the simplest/bestã > way to go about obtaining it?ã >ã > resolve_ip(system.inet_addr)ã >ã > Just making sure I'm not overlooking something simpler.ããserver.interface_ip_addressããOr (if you have multiple IP addresses), server.interface_ip_addr_listã-- ã digital man (rob)ããSynchronet "Real Fact" #42:ãRob Swindell was laughed out of a FidoNet Net103 (OC, Calif.) meeting in 1992ãNorco, CA WX: 92.6øF, 25.0% humidity, 0 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Codefenix@VERT/CONCHAOS to Digital Man on Sun Sep 10 12:22:28 2023
    Re: Getting the BBS IP addressã By: Digital Man to Codefenix on Fri Sep 08 2023 01:03 pmãã DM> server.interface_ip_addressããIsn't that deprecated?ãã DM> Or (if you have multiple IP addresses), server.interface_ip_addr_listããI just have one, so I assume I would do: server.interface_ip_addr_list[0]ããWhen I try that though, it returns 0.0.0.ã ã|01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07ã ãã...Interchangable devices won`t.ã---ã þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-ã
  • From Digital Man@VERT to Codefenix on Sun Sep 10 14:50:01 2023
    Re: Getting the BBS IP addressã By: Codefenix to Digital Man on Sun Sep 10 2023 12:22 pmãã > Re: Getting the BBS IP addressã > By: Digital Man to Codefenix on Fri Sep 08 2023 01:03 pmã >ã > DM> server.interface_ip_addressã >ã > Isn't that deprecated?ããIt still works and I have no plans to remove it.ãã > DM> Or (if you have multiple IP addresses), server.interface_ip_addr_listã >ã > I just have one, so I assume I would do: server.interface_ip_addr_list[0]ã >ã > When I try that though, it returns 0.0.0.ããAnd that would be correct if your BBS is only listening on IPv4 "any". I would expect the IPv6 "any" interface address (::) to be listed in that array too, but default.ããA better idea is probably is to use client.socket.local_ip_address to get the currently connected/used server IP address.ã-- ã digital man (rob)ããSynchronet/BBS Terminology Definition #50:ãLF = Line Feed (ASCII 10, Ctrl-J)ãNorco, CA WX: 93.6øF, 37.0% humidity, 4 mph SE wind, 0.01 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Codefenix@VERT/CONCHAOS to Digital Man on Mon Sep 11 14:29:58 2023
    Re: Getting the BBS IP addressã By: Digital Man to Codefenix on Sun Sep 10 2023 02:50 pmãã DM> A better idea is probably is to use client.socket.local_ip_address to getã DM> the currently connected/used server IP address.ããSame outcome as before, unfortunately. Getting 0.0.0.0ã ã|01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07ã ãã...The God's play games with men as balls.ã---ã þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-ã
  • From Digital Man@VERT to Codefenix on Mon Sep 11 16:34:42 2023
    Re: Getting the BBS IP addressã By: Codefenix to Digital Man on Mon Sep 11 2023 02:29 pmãã > Re: Getting the BBS IP addressã > By: Digital Man to Codefenix on Sun Sep 10 2023 02:50 pmã >ã > DM> A better idea is probably is to use client.socket.local_ip_address toã > DM> get the currently connected/used server IP address.ã >ã > Same outcome as before, unfortunately. Getting 0.0.0.0ããIs there a client connected? It's certainly not 0.0.0.0 for me:ã;evalãParameter(s): client.socket.local_ip_addressãResult (string): 71.95.196.36ã-- ã digital man (rob)ããSling Blade quote #11:ãDoyle Hargraves (to Karl): What in the hell you doin' with that hammer?ãNorco, CA WX: 87.7øF, 45.0% humidity, 8 mph S wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Codefenix@VERT/CONCHAOS to Digital Man on Tue Sep 12 09:03:25 2023
    Re: Getting the BBS IP addressã By: Digital Man to Codefenix on Mon Sep 11 2023 04:34 pmãã DM> Is there a client connected? It's certainly not 0.0.0.0 for me:ããYes, mine. :) I'm running a script containing the client.socket.local_ip_address while logged into the BBS.ãã DM> ;evalã DM> Parameter(s): client.socket.local_ip_addressã DM> Result (string): 71.95.196.36ããInteresting. I get a different result when I call client.socket.local_ip_address that way as opposed to calling it within a script.ãã;EVALãParameter(s): client.socket.local_ip_addressãResult (string): 192.168.1.9ããAlso, it's returning the behind-the-router IP for me, rather than the outward-facing IP, which it seems like it's supposed to do given your output.ã ã|01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07ã ãã...A pnp transistor will be an npn.ã---ã þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-ã
  • From Digital Man@VERT to Codefenix on Tue Sep 12 12:02:07 2023
    Re: Getting the BBS IP addressã By: Codefenix to Digital Man on Tue Sep 12 2023 09:03 amãã > Re: Getting the BBS IP addressã > By: Digital Man to Codefenix on Mon Sep 11 2023 04:34 pmã >ã > DM> Is there a client connected? It's certainly not 0.0.0.0 for me:ã >ã > Yes, mine. :) I'm running a script containing theã > client.socket.local_ip_address while logged into the BBS.ããRunning a script how? What's in the script?ããI created exec/test.js containing a single line:ã print(client.socket.local_ip_address);ããAnd then when I run that script from the BBS, I get the IP address I expect:ã;exec ?test.jsã71.95.196.36ãã > DM> ;evalã > DM> Parameter(s): client.socket.local_ip_addressã > DM> Result (string): 71.95.196.36ã >ã > Interesting. I get a different result when I callã > client.socket.local_ip_address that way as opposed to calling it within aã > script.ããI do not.ãã > ;EVALã > Parameter(s): client.socket.local_ip_addressã > Result (string): 192.168.1.9ã >ã > Also, it's returning the behind-the-router IP for me, rather than theã > outward-facing IP, which it seems like it's supposed to do given yourã > output.ããMy servers aren't behind NAT, so that's expected. I guess if you want to find the *public* IP address associated with your hostname and your server is behind a NAT, then I guess the method you originally provided is (only?) way.ã-- ã digital man (rob)ããRush quote #47:ãAll of us get lost in the darkness, dreamers learn to steer by the starsãNorco, CA WX: 83.4øF, 45.0% humidity, 0 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Tracker1@VERT/TRN to Digital Man on Fri Sep 15 19:26:35 2023
    Re: Getting the BBS IP addressã By: Digital Man to Codefenix on Tue Sep 12 2023 12:02:07ãã DM> My servers aren't behind NAT, so that's expected. I guess if you want toã DM> find the *public* IP address associated with your hostname and your serverã DM> is behind a NAT, then I guess the method you originally provided isã DM> (only?) way.ããIP Onlyãhttp://ipv4.bbs.land/ãhttp://ipv6.bbs.land/ããSplit on comma, second part is IPãhttp://ip4.me/api/ãhttp://ip6.me/api/ããThe ip(4|6) I found while looking for such a service... the bbs.land ones are mine... Mostly in preparation for setting up some of the domains I have for BBS related dyndns support.ã ã ã-- ãMichael J. Ryan ã+o roughneckbbs.com ãtracker1@roughneckbbs.comãã---ã þ Synchronet þ Roughneck BBS - roughneckbbs.comã