Assuming your friend is not on your lan (if applicable), he needs to use the real, world visible ip of your DNAS machine.
How to find your ip address (Part I).
How to find your ip address (Part II).
Remember to tell your friend to not
prefix the server ip with http://
Finally, the port to use is what you have portBase defined in your DNAS. The default is 8000.