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 server.org 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.

After I modified the game with the LP, I was able to play it with friends.