First, am going to show some things in this response which some will baulk at, but ... if your private network is secure then it should make no difference.
The problem is an internal DNS issue - thus also affects how one sets config.php for Moodle.
http://moodle.gounanursing.org:8181
197.45.49.149
dc-01.elgounanursing.local - this is now exposed in the settings page one sees when accessing the site from the outside.
Can hit your site from external by FQDN. Get some sort of
settings page ... can see php extensions enabled as well
as Tools, Projects (moodle is under that one), and Aliases:
phpmyadmin, phpsysinfo, sqlbuddy, webgrind.
None are accessible from the outside however.
Conclusion: an internal DNS issue.
The DNS server for your internal network which is a .local network
needs to have an entry that maps the private IP address
192.168.2.2 to the same FQDN as outside DNS would resolve to
the outside IP address 197.45.49.149.
So if one were on a Linux box internal to your network (the .local)
and they did a dig (DNS query) on the .local DNS server it would show:
dig moodle.gounanursing.org
moodle.gounanursing.org. 3600 IN A 192.168.2.2
If you don't have an internal DNS server, then one has no choice
but to use hostfile entries in server as well as internal workstations
that are to access it. (Google for that on how to do that in Windows)
A hostfile entry would look like:
192.168.2.2 moodle.gounanursing.org moodle
IF, that hostfile entry were on a laptop, and the laptop is taken outside the private
and connected to another private network, that hostfile entry
would have to be commented out. That laptop would use the DNS setup of the network it's connected to
and lookup the host name moodle.gounanursing.org and find it's
public IP address 197.45.49.149 and thus be able to access.
The only sure way to get an internal Moodle server on .local to be
accessible to both internal (private) network and the outside internet
is to use DNS ... a fully qualfied domain name as it appears to the outside
internet ... ie, moodle.gounanursing.org
Then, in your config file, rather than IP address, you can use
the FQDN (moodle.gounanursing.org) inside/outside with no issues.
'spirit of sharing', Ken