The parallel and serial base ports aren't on the same location on every pc! so on some pc's (mostly older acer's) it may be a diffirent value.
The bios stores the base port in a fixed memory place, your program should check there to see what base port to use
Parallel ports:
0000:0408 LPT1's Base Address. Typical H378 - d888
0000:040A LPT2's Base Address. Typical H278 - d632
0000:040C LPT3's Base Address
0000:040E LPT4's Base Address
Serial ports:
0000:0400 COM1's Base Address. Typical H3F8 - d1016
0000:0402 COM2's Base Address. Typical H2F8 - d760
0000:0404 COM3's Base Address. Typical H3E8 - d1000
0000:0406 COM4's Base Address. Typical H2E8 - d744
Mind you, using the serial port by controlling the hardware directly is a LOT more difficult then the parallel port. You need to set up the baud rate, and many more settings.