Sounds like your router is the issue. Constant self-rebooting is a typical problem for routers these days for some reason. When the router reboots, it will disconnect both your machines until it fully boots up. It typically takes anywhere from 5-30 seconds to regain a connection. Does this sound like what you are experiencing?