The <a rel="mw:WikiLink" href="https://en.wikipedia.org/Long_Island_Rail_Road" title="Long Island Rail Road" id="mwArI">Long Island Rail Road</a>'s <a rel="mw:WikiLink" href="https://en.wikipedia.org/Port_Jefferson_Branch" title="Port Jefferson Branch" id="mwArM">Port Jefferson Branch</a> serves the town's vicinity, and uses stations between <a rel="mw:WikiLink" href="https://en.wikipedia.org/Cold_Spring_Harbor_(LIRR_station)" title="Cold Spring Harbor (LIRR station)" class="mw-redirect" id="mwArQ">Cold Spring Harbor</a> through <a rel="mw:WikiLink" href="https://en.wikipedia.org/Northport_(LIRR_station)" title="Northport (LIRR station)" class="mw-redirect" id="mwArU">Northport</a>. <a rel="mw:WikiLink" href="https://en.wikipedia.org/Huntington_(LIRR_station)" title="Huntington (LIRR station)" class="mw-redirect" id="mwArY">Huntington</a> is the eastern terminus of electrification along the Port Jefferson Branch.