Hi The precise details of this depend on your hosting environment, but the canonical method is request.get_host() ; see https://docs.djangoproject.com/en/3.0/ref/request-response/#django.http.HttpRequest.get_host
If your hosting environment is non-standard; you might need some custom middleware to help, as per the discussion in the link documentation. On Tue, 2020-01-21 at 17:38 +0530, Soumen Khatua wrote: > I want to show the users/clients IP address > > > > On Tue, Jan 21, 2020 at 5:29 PM bharat pamnani < > bharatpamnan...@gmail.com> wrote: > > hostname -I will give you the ip of user. > > On Tue, Jan 21, 2020 at 5:27 PM Soumen Khatua < > > soumenkhatua...@gmail.com> wrote: > > > Hi Folks, > > > In my Django application I want to show IP address of users, Just > > > like others financial websites. How I can do that using Django(of > > > course it's should be free cost). > > > > > > Thank You in advance > > > > > > Regards, > > > Soumen > > > > > > > > > > > > -- > > > > > > You received this message because you are subscribed to the > > > Google Groups "Django users" group. > > > > > > To unsubscribe from this group and stop receiving emails from it, > > > send an email to django-users+unsubscr...@googlegroups.com. > > > > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/django-users/CAPUw6WZX_VEzB3jCR4DvOTUE08JXifr9todeHHUP29MumgrM2w%40mail.gmail.com > > > . > > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/404609067d9c78d3e427cbb08cd109b63b7e8d0c.camel%40gammascience.co.uk.