I use “localhost” For linux/OSX in the file /etc/hosts ( and for windows in the file C:\Windows\System32\drivers\etc\hosts ) add lines like
staging-server-IP www.siteurl.com
dev-server-IP www.siteurl.com
127.0.0.1 www.siteurl.com
Since license validation works on the domain name, then this approach works.
If you find a better solution let me know
Cheers,
Bogdan