How to include Port number with URL

Hi,

I want to include Port number in the Welcome email to the new user.
However, I guess “from frappe.utils import get_url” only returns ip address.

Is there any other frappe function to get port as well.

Regards
Mian

@mijan1373,

You can add the host_name property in your site_config.

e.g. host_name: 192.168.0.1:8000

Thanks,
Makarand

Sorry, that shows “Internal Error”

@mijan1373,

Please check if the site_config.json contains the valid json, You can validate json in jsonlint.com.

Thanks,
Makarand