That's done in IIS, mostly. Change the port IIS answers on in the properties of your web site. Then add the port address to the DNN alias, something like:
http://www.sample.com:8080/Naturally, on a non-standard port you'll need to specity the port on the URL, as above.
Jeff
Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.