There have been several posts about this, so the answers should be in there. Warning in advance that Slicer query implementation is not the most efficient, but it should work.
https://discourse.slicer.org/search?q=aetitle%20order%3Alatest
This post from yesterday has the key info about AETITLE and port: Configuration of the 3D Slicer DICOM Listener to Hospital CT