didn't quite understand what you mean, but as a suggestion try loopmidi or midiyoke to create virtual MIDI ports on your PC. Then always use a pair of virtual MIDI ports for in- and output.
sorry to hear that. But from here there's not much I can do to help. Maybe you could provide more details, router or ad-hoc, network settings, IP's, . . .