To give a name to an IP address, configure the file httpd.conf
in apache. It will be in the directory:
c:\wamp\Apache2\conf\httpd.conf
Look for something like:
DocumentRoot 'c:/wamp/www'
And add the following after DocumentRoot 'c: / wamp / www':
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot 'C:\wamp\www'
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName yourdomain.com
DocumentRoot 'C:\wamp\www\ClientsMyClient'
</VirtualHost>
I leave the English stack link: Wamp with domain name
EDITO according to comments:
So that your server always has the same IP, and clients can always connect on the same IP, you have to prevent your server from being assigned a random IP through DHCP.
To do this, you only have to assign a fixed IP to the computer on which the server is located. This is done in the ipv4 configuration.
Networks and internet > Change adapter settings > Local area connection > Properties > Internet Protocol version 4 (ipv4) > Properties > And there you indicate the IP that you want. Fixed IP
In this way the server will always maintain the same IP.