I had to look it up, there is no external wired remote port for a D3400. The hot-shoe does not control shutter release.
So you either find a wireless infrared shutter release remote with an intervalometer and live with a max 30 second exposure time per frame, or use a laptop pc by USB cable and...