To enable browsing websites with IP address, you have to run following commands
cd /usr/local/directadmin/custombuild ./build set userdir_access yes ./build rewrite_confs
The website can be visited with IP address. For example, 194.245.58.124/~username
This will enable browsing default website of the username.
And to disable website with IP address:
cd /usr/local/directadmin/custombuild ./build set userdir_access no ./build rewrite_confs