Auto-translated
Regarding port forwarding:
Ports for Heroes of Might and Magic: 2300-2400, 28800-29100, 47624
For Heroes of Might and Magic Online: 2700 (not sure where this information comes from), also 12975 and 32976 are mentioned.
If I'm not mistaken, this didn't help me, but disabling uPnP did.
However, for Diablo 2, connecting via TCP/IP (I have a static IP) was helped by: 6112-6119, 4000 :D :D :D