title: websocket is connection local
body: <p>I'm writing a website where the server is on a pi running a C program using  libwebsockets.  I'm wondering if it's possible to determine if the host is local (connected from LAN) or remote (from WAN).   I'd like to limit what the web page can do if it's from a remote source.</p>