How do i get the IP of those who visited my url

I am using it for my nextjs application but i cant seem to get the ip address of those who visit my proxy url. I need help please.