All you have to do is configure your router to forward the required UDP port to the computer hosting dfx.
If the computer hosting dfx does not have an internal static IP, then chances are every time you restart the computer you will have to re-configure the router to forward the game port.
I forget what the port number was though...
IcI