• fTelnet not working with ECWEBV4

    From Hawkeye@1:103/705 to All on Wednesday, March 06, 2019 22:40:42
    Hi guys,

    Trying to make ecwebv4 and fTelnet working so users can connect to the BBS via website.

    If I access the BBS website locally it connects via Telnet by clicking on Conect via Telnet. If I access my website http://mash40777.ddns.net:4077 which is portforwarded to 80 on my BBS machine it shows the website but isnt able to connect via telnet.

    Any help appreciated.

    I tried to change the IP listen address from 0.0.0.0 to its local IP but that didnt work.
    HAWKEYE

    - MASH BBS - mash4077.ddns.net - The Netherlands -

    ---
    Synchronet MASH4077.DDNS.NET - MASH BBS - The Netherlands
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Denn@1:103/705 to Hawkeye on Wednesday, March 06, 2019 23:11:30
    Re: fTelnet not working with ECWEBV4
    By: Hawkeye to All on Wed Mar 06 2019 10:40 pm

    Trying to make ecwebv4 and fTelnet working so users can connect to the BBS via website.

    If I access the BBS website locally it connects via Telnet by clicking on Conect via Telnet. If I access my website http://mash40777.ddns.net:4077 which is portforwarded to 80 on my BBS machine it shows the website but isnt able to connect via telnet.

    OK 1st question, what port is your BBS using?
    2nd questionm, do you run your own proxy server?
    port 80 is generally used for web I tried your BBS using ftelnet using ports :4077 and :23 no connection.

    ---
    Synchronet outwestbbs.com - the Outwest BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Denn@1:103/705 to Hawkeye on Wednesday, March 06, 2019 23:29:13
    OK I got your problem solved, just goto your webv4 folder then your pages folder open 000-home then cut the script below and paste it over the the ftelnet script in your 000-home.

    <div id="fTelnetContainer" class="fTelnetContainer"></div> <script>document.write('<script src="//embed-v2.ftelnet.ca/js/ftelnet-loader.norip.xfer.js?v=' + (new Date()).getTime() + '"><\/script>');</script>
    <script>
    var Options = new fTelnetOptions();
    Options.BareLFtoCRLF = false;
    Options.BitsPerSecond = 115200;
    Options.ConnectionType = 'telnet';
    Options.Emulation = 'ansi-bbs';
    Options.Enter = '\r';
    Options.Font = 'CP437';
    Options.ForceWss = false;
    Options.Hostname = 'mash4077.ddns.net';
    Options.LocalEcho = false;
    Options.Port = 23;
    Options.ProxyHostname = 'proxy-us-ca.ftelnet.ca';
    Options.ProxyPort = 80;
    Options.ProxyPort = 443;
    Options.ScreenColumns = 80;
    Options.ScreenRows = 25;
    var fTelnet = new fTelnetClient('fTelnetContainer', Options);
    </script>


    this script works, I used it to connect to your BBS and it connected just fine.

    ---
    Synchronet outwestbbs.com - the Outwest BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hawkeye@1:103/705 to Denn on Thursday, March 07, 2019 13:08:46
    OK I got your problem solved, just goto your webv4 folder then your pages folder open 000-home then cut the script below and paste it over the the ftelnet script in your 000-home.

    <div id="fTelnetContainer" class="fTelnetContainer"></div> <script>document.write('<script src="//embed-v2.ftelnet.ca/js/ftelnet-loader.norip.xfer.js?v=' + (new Date()).getTime() + '"><\/script>');</script>
    <script>
    var Options = new fTelnetOptions();
    Options.BareLFtoCRLF = false;
    Options.BitsPerSecond = 115200;
    Options.ConnectionType = 'telnet';
    Options.Emulation = 'ansi-bbs';
    Options.Enter = '\r';
    Options.Font = 'CP437';
    Options.ForceWss = false;
    Options.Hostname = 'mash4077.ddns.net';
    Options.LocalEcho = false;
    Options.Port = 23;
    Options.ProxyHostname = 'proxy-us-ca.ftelnet.ca';
    Options.ProxyPort = 80;
    Options.ProxyPort = 443;
    Options.ScreenColumns = 80;
    Options.ScreenRows = 25;
    var fTelnet = new fTelnetClient('fTelnetContainer', Options);
    </script>

    this script works, I used it to connect to your BBS and it connected just fine.

    ---
    � Synchronet � outwestbbs.com - the Outwest BBS



    Denn,

    Thanks for helping me out.

    I pasted it and I can't logon, I press enter etc.. nothing happens. I tried locally and via internet.

    This is in my 000-home :

    <!--Home-->

    <!-- fTelnet -->
    <?xjs
    if (settings.ftelnet) {
    const ftelnet_lib = load({}, settings.web_lib + 'ftelnet.js');
    load('ftelnethelper.js');

    <style>.fTelnetStatusBar { display : none; }</style>
    <div id="fTelnetContainer" class="fTelnetContainer"></div> <script>document.write('<script src="//embed-v2.ftelnet.ca/js/ftelnet-loader.norip.xfer.js?v=' + (new Date()).getTime() + '"><\/script>');</script>
    <script>
    var Options = new fTelnetOptions();
    Options.BareLFtoCRLF = false;
    Options.BitsPerSecond = 115200;
    Options.ConnectionType = 'telnet';
    Options.Emulation = 'ansi-bbs';
    Options.Enter = '\r';
    Options.Font = 'CP437';
    Options.ForceWss = false;
    Options.Hostname = 'mash4077.ddns.net';
    Options.LocalEcho = false;
    Options.Port = 23;
    Options.ProxyHostname = 'proxy-us-ca.ftelnet.ca';
    Options.ProxyPort = 80;
    Options.ProxyPort = 443;
    Options.ScreenColumns = 80;
    Options.ScreenRows = 25;
    var fTelnet = new fTelnetClient('fTelnetContainer', Options);
    </script>

    <?xjs } ?>

    <!-- end fTelnet -->

    HAWKEYE

    - MASH BBS - mash4077.ddns.net - The Netherlands -

    ---
    Synchronet MASH4077.DDNS.NET - MASH BBS - The Netherlands
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Hawkeye on Thursday, March 07, 2019 11:59:26
    Re: fTelnet not working with ECWEBV4
    By: Hawkeye to All on Wed Mar 06 2019 22:40:42

    Conect via Telnet. If I access my website http://mash40777.ddns.net:4077 which is portforwarded to 80 on my BBS machine it shows the website but isnt able to connect via telnet.

    It works fine for me, allowing that I took a '7' out of your hostname.

    Weird thing is that the 'Connect' button is missing from your fTelnet instance, I have no idea why. However if I type 'fTelnet.Connect()' in the browser JS console and hit return, it connects just fine.

    Note that whether your webserver listens on port 4077 or port 80 or redirects doesn't really matter. When fTelnet connects, it connects to your WebSocket service, which is on another port. The WebSocket service, in turn, connects to your telnet server, and serves as a proxy between that and fTelnet in the browser.

    Some info here:

    https://github.com/echicken/synchronet-web-v4/wiki/ftelnet

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
    Synchronet electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Denn@1:103/705 to Hawkeye on Thursday, March 07, 2019 09:49:52
    Re: fTelnet not working with ECWEBV4
    By: Hawkeye to Denn on Thu Mar 07 2019 01:08 pm

    Ok that's weird I can run the script and everything works fine.
    I just went and redid the snipet and included an ansi spash screen.
    Copy everything from <!--home--> to </script>
    and replace everything in your 000-home
    I just tried it on my webpage and it worked great.


    <!--Home-->

    <div id="fTelnetContainer" class="fTelnetContainer"></div> <script>document.write('<script src="//embed-v2.ftelnet.ca/js/ftelnet-loader.norip.xfer.js?v=' + (new Date()).getTime() + '"><\/script>');</script>
    <script>
    var Options = new fTelnetOptions();
    Options.BareLFtoCRLF = false;
    Options.BitsPerSecond = 57600;
    Options.ConnectionType = 'telnet';
    Options.Emulation = 'ansi-bbs';
    Options.Enter = '\r';
    Options.Font = 'CP437';
    Options.ForceWss = false;
    Options.Hostname = 'MASH4077.DDNS.NET';
    Options.LocalEcho = false;
    Options.Port = 23;
    Options.ProxyHostname = 'proxy-us-ga.ftelnet.ca';
    Options.ProxyPort = 80;
    Options.ProxyPort = 443;
    Options.ScreenColumns = 80;
    Options.ScreenRows = 25;
    Options.SplashScreen = 'G1swOzM3OzQwbRtbMkobWzE7MzNtG1sxOzFI29/f39wg2yDc39/f3BtbMDszNzs0MG0gICAbWzE7Mz Nt29/f39wbWzA7Mzc7NDBtIBtbMTszM23b39/f3BtbMDszNzs0MG0gG1sxOzMzbdzf39/cG1swOzM3O zQwbSAbWzE7MzNt39/b398bWzA7Mzc7NDBtIBtbMTszM23bICAg2xtbMTs0N0jb39/f3xtbMTs1M0jb 39/f3BtbMjsxSNvc3NzfINsg2xtbMjsxMUjc3NwbWzI7MTdI29zc3N8bWzI7MjNI29zc3N8bWzI7Mjl I2xtbMjszM0jbG1syOzM3SA0KG1syOzM3SNsbWzI7NDFI29zc3NsbWzI7NDdI29zc3BtbMjs1M0jb3N zc3xtbMjs1OUggSV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1sxOzMxOzQwbd8NChtbMTg7 MjhI39/f3xtbNDFt3CAgICAgICAgICAgINzb2xtbNDBt39/f3xtbMDszMDs0M23bG1sxODs1NEjb3Nz cG1szMzs0MG3c3CAgICAbWzM3bSAgICAgICAgICAbWzMzbRtbMTk7MTVI3NsbWzMwOzQzbdvc29vb39 vb29vb29vb298bWzE7MzE7NDBt39/f39/f39/f39/fG1swOzMwOzQzbdvb29vb29zf29vb29vf2yAbW zIwOzE0SCDb29vb298g3Nvb29vb29vbINvb29vb29vb3N/b29vb29zf29vb2yDb29vb29zb3BtbMzM7 NDBt3A0KG1szMDs0M20bWzIxOzE0SN/b39vfG1szMzs0MG3fG1szMDs0M23f29vb29vb29vb39zb29v b3yDb29vbINvb39vbINvb29/c29vc39vb298bWzMzOzQwbd8bWzIyOzE0SN8bWzMwOzQzbd/fG1szMz s0MG3fICDfG1szMDs0M23f29sg39sgG1szMzs0MG3fG1szMDs0M23c3xtbMzM7NDBt3xtbMzA7NDNt3 9/b3xtbMzM7NDBt3yDfG1szMDs0M23f298bWzMzOzQwbd8bWzQzbSAbWzMwbdvfG1szMzs0MG3f3xtb MzA7NDNt3N/fG1szMzs0MG3fIN8NChtbMjI7NTRIG1szMDs0M23f29sgG1szMzs0MG3fG1szMDs0M23 fG1szMzs0MG3fG1syMzsyMkjf3xtbMzA7NDNt3xtbMzM7NDBtG1syMzsyNkjfICDfICAgIN8bWzIzOz QwSN8gICDfICAg3xtbMjM7NTRI3xtbMzA7NDNt3xtbMzM7NDBt3xtbMW0bWzIzOzYxSCAgIBtbMjM7M UgbWzBtDQo=';
    var fTelnet = new fTelnetClient('fTelnetContainer', Options);
    </script>

    ---
    Synchronet outwestbbs.com - the Outwest BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hawkeye@1:103/705 to Denn on Friday, March 08, 2019 00:49:37
    Re: fTelnet not working with ECWEBV4
    By: Hawkeye to Denn on Thu Mar 07 2019 01:08 pm

    Ok that's weird I can run the script and everything works fine.
    I just went and redid the snipet and included an ansi spash screen.
    Copy everything from <!--home--> to </script>
    and replace everything in your 000-home
    I just tried it on my webpage and it worked great.

    SNIP

    ---
    � Synchronet � outwestbbs.com - the Outwest BBS



    This is working :) nice ANSI lol.... in my other post I indeed make a type with the extra 7, in my 000-home was no typo imho.

    I copied all your code and its working!

    Thanks

    HAWKEYE

    - MASH BBS - mash4077.ddns.net - The Netherlands -

    ---
    Synchronet MASH4077.DDNS.NET - MASH BBS - The Netherlands
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hawkeye@1:103/705 to echicken on Friday, March 08, 2019 00:51:18
    Re: fTelnet not working with ECWEBV4
    By: Hawkeye to All on Wed Mar 06 2019 22:40:42

    It works fine for me, allowing that I took a '7' out of your hostname.

    Weird thing is that the 'Connect' button is missing from your fTelnet instance, I have no idea why. However if I type 'fTelnet.Connect()' in the browser JS console and hit return, it connects just fine.

    Note that whether your webserver listens on port 4077 or port 80 or redirects doesn't really matter. When fTelnet connects, it connects to your WebSocket service, which is on another port. The WebSocket service, in turn, connects to your telnet server, and serves as a proxy between that and fTelnet in the browser.

    Some info here:

    https://github.com/echicken/synchronet-web-v4/wiki/ftelnet

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
    � Synchronet � electronic chicken bbs - bbs.electronicchicken.com



    That was a typo indeed, only 2x7 :) not 3. I copied Denn his code and it works now!

    Thanks both for helping me out.

    HAWKEYE

    - MASH BBS - mash4077.ddns.net - The Netherlands -

    ---
    Synchronet MASH4077.DDNS.NET - MASH BBS - The Netherlands
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Denn@1:103/705 to Hawkeye on Thursday, March 07, 2019 23:19:21
    Re: fTelnet not working with ECWEBV4
    By: Hawkeye to Denn on Fri Mar 08 2019 12:49 am

    This is working :) nice ANSI lol.... in my other post I indeed make a type with the extra 7, in my 000-home was no typo imho.

    I copied all your code and its working!

    Thanks

    You're Welcome Glad I could help a fellow Sysop out:)

    ---
    Synchronet outwestbbs.com - the Outwest BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hawkeye@1:103/705 to Denn on Friday, March 08, 2019 23:47:54
    Re: fTelnet not working with ECWEBV4
    By: Hawkeye to Denn on Fri Mar 08 2019 12:49 am

    You're Welcome Glad I could help a fellow Sysop out:)

    ---
    � Synchronet � outwestbbs.com - the Outwest BBS



    Thanks to all comments and info I managed to get it working with the default pages. I added forwarding port 1123.

    HAWKEYE

    - MASH BBS - mash4077.ddns.net - The Netherlands -

    ---
    Synchronet MASH4077.DDNS.NET - MASH BBS - The Netherlands
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)