true wan

Jun 3, 2008
27
0
#4
On Tue, 01 Jun 2010 03:55:21 -0400, Kachupp <>
wrote Re RE: [Plugins-t-2015] true wan:


>---Quote---
>> On Tue, 01 Jun 2010 03:16:24 -0400, Kachupp <> wrote:
>>
>> |Any plugins around the grab the WAN IP. ?? if not make one
>> |
>>
>> What do you mean by "WAN IP"?
>---End Quote---
>Wide Area Network .. the true IP address
I believe this is the IP address of your computer as seen from the
Internet and will be the address of your gateway router or firewall.
--
At first they laugh at you, then they ignore you, then they fight you, then you win.
 
#5
On Tue, 01 Jun 2010 03:55:21 -0400, Kachupp <> wrote:

|---Quote---
|> On Tue, 01 Jun 2010 03:16:24 -0400, Kachupp <> wrote:
|>
|> |Any plugins around the grab the WAN IP. ?? if not make one
|> |
|>
|> What do you mean by "WAN IP"?
|---End Quote---
|Wide Area Network .. the true IP address

Does your computer have a "true IP address"?

Try: ECHO %_IP

What does it say?
--
- Vince
 
Aug 9, 2009
133
0
#6
> |---Quote---
> |> On Tue, 01 Jun 2010 03:16:24 -0400, Kachupp <> wrote:
> |>
> |> |Any plugins around the grab the WAN IP. ?? if not make one
> |> |
> |>
> |> What do you mean by "WAN IP"?
> |---End Quote---
> |Wide Area Network .. the true IP address
>
> Does your computer have a "true IP address"?
>
> Try: ECHO %_IP
>
> What does it say?
That echos the local address 192.168.1.2 to access "Router"
_WIP would be a nice addin / plugin / new tcc intrernal
 
#7
On Tue, 01 Jun 2010 18:46:51 -0400, Kachupp <> wrote:

|That echos the local address 192.168.1.2 to access "Router"
|_WIP would be a nice addin / plugin / new tcc intrernal

Then the computer doesn't have a real IP address and the only way you (or
Windows, or TCC) can get it from the router is to ask the router for it. Can't
you connect to the router with your browser and see details of it's
configuration? You probably can, and if so, you could write a TCC batch file to
get info from the router and process it.

For example, if I tell TCC "type 192.168.100.1/logsdata.html", I see my
cable modem's log.

A plugin command to do what you seem to want would be impossible given the
variety of routers, private IP addresses, and data formats in existence.
--
- Vince
 
#8
On Tue, Jun 1, 2010 at 5:46 PM, Kachupp <> wrote:


> That echos the local address 192.168.1.2 to access "Router"
> _WIP would be a nice addin / plugin / new tcc intrernal
>
>
Hello Kachupp,

Well, this is not the most elegant, but I use this as a function (as defined
in my functions file and sourced in my startup):

RouterIP = %@ExecStr[wget
http://www.whatismyip.com/automation/n09230945.asp-q -O -]

So, when I need it, I can call %@RouterIP[]

It uses the external command "wget" You should be able to grab this very
useful tool from the following URL. I've not found a way to do this with
internal TCC functions.

http://tinyurl.com/7ktsf

Best of luck,

Michael
 
Aug 9, 2009
133
0
#9
> |That echos the local address 192.168.1.2 to access "Router"
> |_WIP would be a nice addin / plugin / new tcc intrernal
>
> Then the computer doesn't have a real IP address and the only way you (or
> Windows, or TCC) can get it from the router is to ask the router
> for it. Can't
> you connect to the router with your browser and see details of it's
> configuration? You probably can, and if so, you could write a
> TCC batch file to
> get info from the router and process it.
>
> For example, if I tell TCC "type
> http://192.168.100.1/logsdata.html", I see my
> cable modem's log.
>
> A plugin command to do what you seem to want would be impossible given the
> variety of routers, private IP addresses, and data formats in existence.
I can get it from the router but it "SEEMS" clumsy in doing so. I could
retrieve it from any website i visit as well but that also FEELS clumsy. My
router requires passwords to access, I can still get too it with keystack ..
again its a lot of "clumsy" work for a simple request. Given the _ip would
show the WAN ip of a standard dialup modem. it shouldn't be that difficult
for you plugin guru's too nut it out.
 
#10
On Tue, 01 Jun 2010 20:24:06 -0400, Kachupp <> wrote:

|I can get it from the router but it "SEEMS" clumsy in doing so. I could
|retrieve it from any website i visit as well but that also FEELS clumsy. My
|router requires passwords to access, I can still get too it with keystack ..
|again its a lot of "clumsy" work for a simple request. Given the _ip would
|show the WAN ip of a standard dialup modem. it shouldn't be that difficult
|for you plugin guru's too nut it out.

With a dialup modem, you get a real IP. So windows knows what it is and a
plugin can ask Windows.
--
- Vince
 
#12
#17
Wide Area Network .. the true IP address
Code:
@setlocal
@echo off
copy http://checkip.dyndns.org wanip.htm > nul
setdos /X-6
set wanip=%@line[wanip.htm,0]
::**NOTE: Forum would not allow correct posting of the following line
set wanip=%@strip["Current IP Address: Check",%wanip]
::**WANIP.BTM attached to this message with correct line
setdos /X0
if exist wanip.htm del wanip.htm > nul
endlocal wanip
Code:
echo %wanip
76.70.57.31
This is not the best solution, as this web site could disappear one day, but it works for now.

Joe
 

Attachments

Aug 9, 2009
133
0
#18
> ---Quote (Originally by Kachupp)---
> Wide Area Network .. the true IP address
> ---End Quote---
>
> Code:
> ---------
> @setlocal
> @echo off
> copy http://checkip.dyndns.org wanip.htm > nul
> setdos /X-6
> set wanip=%@line[wanip.htm,0]
> ::**NOTE: Forum would not allow correct posting of the following line
> set wanip=%@strip["Current IP Address: Check",%wanip]
> ::**WANIP.BTM attached to this message with correct line
> setdos /X0
> if exist wanip.htm del wanip.htm > nul
> endlocal wanip
> ---------
>
> Code:
> ---------
> echo %wanip
> 76.70.57.31
ping -r 1 google.com use to show the route it would take thus revealing the
IP address of the machine requesting that info.
I'm not sure why it doesn't work anymore.