Do you have a number system yet, like the major system? (If you haven’t seen it yet, there is a free ebook that introduces number systems.)
I would make images for the port numbers and then an image for the fact to remember (like TCP) and then link the two.
||I’d picture my old FTP program (Filezilla)
||Someone saying “shhhh” or a padlock
||A web server
Then link the two images:
- Antelope + Filezilla
- Onion + padlock
- Visor + web server
If you aren’t memorizing every single number, and you want to keep them in order, you could place the linked images in a memory palace.
If you’re still having trouble, post more details about what you’ve tried, and we could brainstorm ideas.