NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JZL on December 29, 2017, 02:57:32 AM

Title: Request from WAN or LAN
Post by: JZL on December 29, 2017, 02:57:32 AM
Is there a function in Nettalk that can tell me if the incoming Request IP is from LAN or WAN or should I know the local network's subnet my self ?
Title: Re: Request from WAN or LAN
Post by: Bruce on January 02, 2018, 07:41:59 AM
>> Is there a function in Nettalk that can tell me if the incoming Request IP is from LAN or WAN or should I know the local network's subnet my self ?

I don't think there's a utility function for this, at the moment.
but you're on the right track.
To determine if it's LAN or WAN compare the FROM IP address to the Subnet Mask, and see if the IP is in the subnet.