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 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
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.
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
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
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
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
Sysop: | Zazz |
---|---|
Location: | Mesquite, Tx |
Users: | 7 |
Nodes: | 4 (0 / 4) |
Uptime: | 77:46:02 |
Calls: | 157 |
Files: | 2,110 |
Messages: | 145,577 |