hi, I'm currently doing a project using Arduino [u]due[/u] with Ethernet shield. The arduino is the client and my PC is the server and i'm working on a local network.
Now everything is working as expected, but since the IP address on the server (my computer) changes from time to time i need to change it manually. I would like to have a more permanent solution for this.
I've tried using:
if(client.connect(serverIP, 80)) where serverIP is my computer-name (host), but it doesn't seems to work like it should. When serverIP is the server IP it works fine.
I've also tried using this: dns.getHostByName but again, something here is wrong.