Installing Windows 3.1 in DOSBox is pretty simple. If you use Megabuild, you can also browse the Internet by loading a ne2000 packet driver and installing Trumpet WinSock in Windows
install first winpcap for windows
in dosbox run:
realnic 4
ne2000.com 0x65 3 0x300
winpkt 0x65
Before starting Windows. Don’t install MS TCP/32, that won’t work with plain DOSBox – you need to create a disk image with MS-DOS for that.
Configure wintrumpet
Download drivers: