Find WAN IP via command line

Find WAN IP via command line

Find WAN IP via command line
Find WAN IP via command line
2025-03-28 14:02:21 - last edited 2025-04-01 00:48:01
Tags: #DNS
Model: ER605 (TL-R605)  
Hardware Version: V2
Firmware Version: 2.2.6 Build 20240718 Rel.82712

I want to be get the WAN IP (public ip) address without using an external service or using DDNS (which also relies on some service) and just querying the router. I know I can get this by logging in, but want to be able to do so via command line either via REST API or WGET and passing in user/password and getting the output. Can this be done and does anyone have an example? 

  1      
  1      
#1
Options
1 Accepted Solution
Re:Find WAN IP via command line-Solution
2025-04-01 00:47:55 - last edited 2025-04-01 00:48:01

Hi @snathan 

Thanks for posting in our business forum.

snathan wrote

Is there a way to get the WAN IP of the router without using an external service via command line?

No.

Recommended Solution
  0  
  0  
#4
Options
3 Reply
Re:Find WAN IP via command line
2025-03-31 02:09:57

Hi @snathan 

Thanks for posting in our business forum.

Not sure what you are looking for. Looks like you have several concepts confused.

Any example?

  1  
  1  
#2
Options
Re:Find WAN IP via command line
2025-03-31 12:46:12
Is there a way to get the WAN IP of the router without using an external service via command line?
  0  
  0  
#3
Options
Re:Find WAN IP via command line-Solution
2025-04-01 00:47:55 - last edited 2025-04-01 00:48:01

Hi @snathan 

Thanks for posting in our business forum.

snathan wrote

Is there a way to get the WAN IP of the router without using an external service via command line?

No.

Recommended Solution
  0  
  0  
#4
Options