1.

Solve : Ip's?

Answer»

are you behind a ROUTER, if so how many??YES I am behind a router,a linksys router.

Almnif you are only behind one router and this is for you only (or any computers on your network you could use tracert so it would look like this:
Code: [SELECT]@echo off
for /f "tokens=9 delims= " %%a in ('tracert -h 2 google.com ^| find /i "2"') do set line=%%a
for /f "tokens=1 delims=[" %%a in ("%line%") do set LINE2=%%a
for /f "tokens=1 delims=]" %%a in ("%line2%") do set external_ip=%%a
echo %external_ip%
pause
if that does not work do this in command prompt:
Quote

cd desktop (press enter)
tracert google.com > tracertd.txt (press enter)
then send that text file to me in an email (pm me for my email) ok ok

Thanks

AlmnDid it work :-? if you need any moor help with anything just ask. Obviously it works

AlmnQuote
f you are only behind one router and this is for you only (or any computers on your network you could use tracert so it would look like this:
Code:

@echo off
for /f "tokens=9 delims= " %%a in ('tracert -h 2 google.com ^| find /i "2"') do set line=%%a
for /f "tokens=1 delims=[" %%a in ("%line%") do set line2=%%a
for /f "tokens=1 delims=]" %%a in ("%line2%") do set external_ip=%%a
echo %external_ip%
pause



What if I am behind more than one router ??

Thank you

Almn


Discussion

No Comment Found