Monitor, not modem? ;)
I assume you just want to use the external display and not have a dual monitor setup? If so, with the external monitor connected, close you MacBook Pro's lid, and then wake it from sleep. Or, as you are restarting, close the lid. You can open the lid afterwards and the...