DEV Community

miko1112
miko1112

Posted on

1

Public IP Of router?

So I'm writing a little networking command line called epsinet and I've realised that ipconfig in cmd returns the private IP Address of the router, not the public. Finding the private IP of the router is fairly easy if you already have the private IP of the user, but the public, for some reason? Not so much.
TL;DR: How do I get the public IP of a connected router through CMD? (still a bit lengthy but shorter)

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs