This research investigates the optimal two-part tariff licensing (a fixed fee with a per-unit or an ad valorem royalty) in markets with network externalities. The core finding is a gradual transition in the optimal contract as network effects intensify. Firms initially prefer a royalty-only contract, then shift to a two-part tariff, and ultimately adopt a pure fixed-fee model when network externalities become very strong. When network externalities are extremely strong, both per-unit and ad valorem two-part tariffs yield equivalent profits. Regarding welfare, licensing always enhances social welfare, although it may reduce consumer surplus. Lastly, the gradual transition of licensing contracts, driven by stronger network effects, contributes to an increase in consumer surplus.