When configuring the miner's network settings, you need to have the miner and the PC/laptop in the same network. The following gif. will show you how to find the gateway and DNS servers.
Applicable to PC/laptop with Win 10 system: