The setup should be documented in the emulator's instruction manual or readme, which is the first place to look.
Most emulators handle link play through a networking or local-link option in the menu, but the exact steps differ between programs, so the documentation that shipped with yours is the reliable source.