Sliicy / routerip

Quickly get IP address of router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📶 routerip

Quickly get the Router IP address on Debian Linux.

How to use:

This only works on Linux. Tested on Debian Wheezy. Download the "routerip" file. Simply allow execution of routerip (either by rightclicking and selecting "allow executing file as a program", or with chmod +x) and run from Terminal.

Code Explanation:

#!/bin/bash
#The header needed to run.

ip route show | grep -i 'default via'| awk '{print $3 }'
#Show IP address of router

You can also drag this file into /usr/bin to execute it from the Terminal anytime you want!

About

Quickly get IP address of router


Languages

Language:Shell 100.0%