Getting hostname from backend

How can i get my Hostname from the backend.
I want to send full url of files but the frappe.get_site_path function get only the resource path

Maybe try something like

In [1]: frappe.utils.get_url()                                                                                                                                                                                                                 
Out[1]: ''

In [2]: frappe.utils.get_url("dashboard")                                                                                                                                                                                                      
Out[2]: ''

1 Like

Exactly what i was searching for
Thanks !