Normally, a web server running on a client inside the LAN can not be accessed from the web without some type of port forwarding. This means that the TCP/IP stream from a port on one host is sent to a port on a different host.
This can be accomplished in several ways. One method is to use the Plugdaemon from the ports tree:
# cd /usr/ports/net/plugdaemon # make install clean
An example of the simplest use is to forward a port on the gateway machine to a port on a machine on the Local Area Network. Here we forward port 8080 to an internal machine's port 80 to access its web server from the Internet:
# plug 8080 192.168.0.2:80