Magnus: I'm not actually using GOGs copy. I'm using a copy from "Heroes of Might and Magic Compendium ". Just copied directly from the disc.
[First I apologise if anything below makes no sense; maybe there's far shorter solution, but this is how I got HoMM to work in multiplayer :) ]
Ok, then:
0) add DOSBox to firewall exceptions, if you have one
1) download [url=ftp://ftp.ipswitch.com/ipswitch/Product_Support/Catipult/netbios.exe]netbios[/url] and put it into DOSBox directory
2) configure your dosbox.conf - under [IPX] section make entries:
Enable=1
Connection=1
ipx=true
3a) now, I don't know how Compendium version works (do you need a mounted image or whatnot), but before launching 'heroes.exe' enter commands:
#go to DOSBox directory
IPXNET STARTSERVER
netbios.exe
#go to HoMM directory & launch a game
now for the tricky part:
STARTSERVER command makes your computer a host; on the computer you want to play with (a guest), do all steps above but replace that command with:
IPXNET CONNECT
host's IP number now you should be able to connect through 'network';