I am developing a web server on a microcontroller and use W5500 chip from Wiznet for access to Ethernet. Right now in order to access the web pages, on the browser I have to type in the ip address of the server. How do I give it a hostname, so instead of ip address I can enter the hostname in the browser?
I already have a working server.
This is the thread (https://superuser.com/questions/1093419/alias-for-ips-in-the-home-lan-network#1093639) but it's not as easy as i thought it would be. I recommend the easy simple answer M Virts mentioned (edit /etc/hosts in linux, C:/Windows/System32/drivers/etc/hosts in Windows) but you must edit this file for each computer you want it to work with. For example, if your server's network ip is 192.168.0.3, in your other computer you should add a similar line like this:
192.168.0.3 myserver.test
Then you should be able to access your server from the browser by entering "myserver.test"