How to play with friends

I allready have a server its working i cant connect to it but how i host it remotely.
For example my friend type in Minecraft and he connects to my server.
I never work with that soo if you give me discord or something elese i can understand better thanks for response.