While some web-based applications can work with only an IP address, others require a vaild domain name. For local testing you might be able to get away with using your operating systems hosts file (/etc/hosts). If multiple machines need to access the application, it becomes an unnecessary challenge to keep a hosts file up to date across multiple systems.