
Lockport was a station on the Niagara Fall Branch of the New York Central Railroad. The 1902 topographic map shows the NYC's Niagara Falls Branch in blue. The Buffalo to Lockport branch connected to the Niagara Falls branch just west of this map at Lockport Junction.
The International Railway (formerly the Erie Railroad's Lockport Branch) is highlighted in red. I do not know the exact route of the International Railway as some maps show it going through downtown and others along The Gulf. The route south and west of Lockport ran to Tonawanda and Buffalo and the route to the north ran to Olcott on Lake Ontario.