Local network plus internet streaming?

What is the best way to set up a server for Infuse where when you are home it will connect locally to your local server and be very fast, but when you leave your home it will seamlessly connect via the Internet to your home server (assuming you have set up the proper port forwarding etc, not a VPN).

There’s a users guide that may help get you pointed in the right direction.

You’ll need to access via a externally resolvable host name and then make sure your router supports NAT hairpinning (this avoids looping out and back on the wan when you are on your local LAN)

Optionally install plex/emby and enable remote streaming on there.