Hello guys i run into a problem and i cant figure out the reason.
i made an arduino web server which powers on/off my computer through internet, i also used dyndns on my router (netgear dgn2200) so i can access arduino from anywhere through internet.
so what happens is this, if my computer is powered on and connected to the router arduino works ok.
if i shutdown my computer arduino continues to work ok.
if i power off the router and then power it back on while my computer is still powered off, arduino isnt accessible.
the lights on the arduino are on, it is working but it cannot be pinged (i tried pinging it at its local ip address from my phone which is connected on the same network and reports destination unreacheable)
if i let the phone pinging arduino for infinite number of tries and i power on my computer, the second that windows logs in the network arduino starts responding to pings.
this happens again if i un plug my pc from my router and reboot the router.
after the router has rebooted and while the pc is unplugged from the network, arduino wont respond to the pings,
as soon as i connect my pc to the router, arduino starts responding to pings again.
when it starts responding it will continue working even if i disconnect my pc until the router reboots.
if the router reboots i have to connect my pc again to the router by the ethernet cable in order for the arduino to get accessible
(please note that in order for the arduino to work after a router reboot, my computer has to get connected to the network by hardwiring it to the router, if i connect my pc to the network by using its wifi adapter, arduino still wont work)
it seems like arduino wont get connected to the network unless my computers ethernet connection gets established
i have made firewall entries on the router to allow incoming and outgoing packets on port 80 to the ip of the arduino,
i declaired an arduino service on the router on the port 80
i set the ip address of the arduino in the router and selected to exclude it from dhcp and keep it for arduino.
arduino is set to have a static ip from its sketch and it is connected from the ethernet port straight to the router.
and one last thing i noticed is that if i check the attached devices on the router it reports every device that its connected to it but arduino doesnt report a name, it just have -- for a name.
also im not sure if i should be able to see arduino as a connected device in network on my computer but i dont.
do you have any idea why arduino isnt accessible until my computer gets connected to the router?