I learned today that if someone is connected to the BBS from ftelnet, and ftelnet is configured with SendLocation=true, the IP message variable accurately displays the user's IP address, but the client.ip_address property does not. This seems to be the case whether running the WS/WSS services built into SBBS or running Rick Parrish's standalone ftelnetproxy service.
For that reason, I'm using bbs.atcode("IP") in place of client.ip_address wherever I depend on the user's IP address (e.g.: location-based weather data).
Curious whether client.ip_address is meant to be equal to the IP message variable though...
client. client.ip_addres has the real IP address of the client (or proxy) that the Synchronet server is communicating with.
I learned today that if someone is connected to the BBS from ftelnet, and ftelnet is configured with SendLocation=true, the IP message variable accurately displays the user's IP address, but the client.ip_address property does not. This seems to be the case whether running the WS/WSS services built into SBBS or running Rick Parrish's standalone ftelnetproxy service.
For that reason, I'm using bbs.atcode("IP") in place of client.ip_address
Re: client.ip_address != bbs.atcode("IP") while using ftelnet
By: Digital Man to Codefenix on Thu Mar 09 2023 06:15 pm
client. client.ip_addres has the real IP address of the client (or proxy) that the Synchronet server is communicating with.
I'm finding that client.ip_address has the BBS PC's local IP (127.0.0.1) if the user is connecting via the ftelnetproxy.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495946:35:43 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 287,044 |