Frag Infinity Tournament, Inc. - FITES LAN Party - www.fites.net

LAN Party Forums => General Discussion => Started by: .:F3ar0n:. on June 26, 2006, 09:38:21 PM

Title: External Ip through DOS
Post by: .:F3ar0n:. on June 26, 2006, 09:38:21 PM
So just because....I was wondering how you would be able to get your external ip through dos commands. I tried to research it a bit and the very few topics I found said about opening a port and telneting ur ip along with the listening port which would give you ur external ip if your behind a router.

Anyone have any ideas...Just something I wanna learn to do instead of hvaing to go through whatsmyip or something to find my external ip. Figured it'd a interesting thing to know. I've tried myself but had no such luck so if someone could possible post an example...that'd be great. Just trying to get more formillar with dos commands

Let me know how it's done..I'm sure someone knows how
Title: External Ip through DOS
Post by: TekieB on June 26, 2006, 09:52:59 PM
root@alp:~# links whatismyip.com :D

good question, got me thinking now, and can't think of anything off the top of my head
Title: External Ip through DOS
Post by: Pride on June 26, 2006, 10:00:43 PM
is running a dos executable count?
Title: External Ip through DOS
Post by: The Shoctor on June 26, 2006, 10:44:49 PM
OMG Who is running DOS!?
Title: External Ip through DOS
Post by: .:F3ar0n:. on June 26, 2006, 11:11:15 PM
Well I read a good bit of scripts out there doing a php type get ip style along with a few ppl who's done it using vbnet. I was just trying to learn the how to in dos prompt. And there isn't anything wrong with running some good ol cmd prompt..it's a learning experience. Believe it or not...98% of the population now a days are running some form of windows OS. with the exception of a few geeks running mac or linux base OS.
Title: External Ip through DOS
Post by: TekieB on June 26, 2006, 11:15:51 PM
98%? Where are you getting that number from?

I thought apple had at least 5% market share (and growing)

edit: one thing I found put windows at 93% share
Title: External Ip through DOS
Post by: _!Rathe!_ on June 27, 2006, 06:23:25 AM
If you sign up with this company http://www.dyndns.org They will allow you to use a url for your dynamic IP address.  Gravdigr found it and is using it for his TeamSpeak server he runs for EQ II.
Title: External Ip through DOS
Post by: Pride on June 27, 2006, 06:53:28 AM
Quote from: "TekieB"
98%? Where are you getting that number from?

I thought apple had at least 5% market share (and growing)

edit: one thing I found put windows at 93% share


Responding like this is why people call you a fanboy.

This is the same type of response a CS player would give if someone said that only 45% of gamers play CS, but in actuality 51% do. :shakeno:  
 
He didn't mention it to create discussion haha   :snicker:
Title: External Ip through DOS
Post by: Agent4054 on June 27, 2006, 07:23:09 AM
lol dont make me write up a "Tips for apple users" guide.

*cough* (http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=50612840&blogID=135523836&MyToken=7f847a78-b04a-4607-912a-ded927b1ed42)
Title: External Ip through DOS
Post by: The Shoctor on June 27, 2006, 07:45:14 AM
Okay, I guess I will be a nice guy and share.. It's actually quite simple.
Step 1.
Go get wget (http://users.ugent.be/~bpuype/wget/) for Win32

Step 2.
Make a Batch File that looks like this:
Code: [Select]
@echo off
REM This will first go get your IP
wget -q http://dynupdate.no-ip.com/ip.php
REM Then this command shows it to you!
type ip.php
REM Then this command removes the rouge file.
del ip.php

I named mine getip.bat.

Step 3.
Put those two files in a place that is in your PATH.
(If you do not know this start another thread. And personaly I think this whole thing should be in the support forum but okay.)

Step 4.
Have Fun running your new batch file that will output your external IP!

There is no native command to get the information that you want. So this is the easiest way I think you can get it from a COMMAND PROMPT. There is no DOS!
Title: External Ip through DOS
Post by: .:F3ar0n:. on June 27, 2006, 09:33:42 AM
shadow...Have you ran this and sucessfully gotten your ip info from it. I understand that it's going out and retrieving it, but I did this exact walkthrough and came up with nothin..

Nevermind then...I have no clue how I screwed this up that badly but I got it...No real need for this post I suppose but to respond to Tekie in the fact that I was just pulling a number...didn't take the time to actually look up the sharehold of Mac and Linux users in comparison to the Windows base population (Sorry)
Title: External Ip through DOS
Post by: cuzzNkev on June 27, 2006, 09:34:38 AM
There is no spoon.
Title: External Ip through DOS
Post by: sully! on June 27, 2006, 07:18:25 PM
F3ar0n, I think I know what you did. After creating the batch file, you just double-clicked it to run, a cmd prompt window popped up very briefly and then went away before you could read it. The way shado wrote that code, it was meant to run from within a cmd prompt window.

If you want to run it by clicking it, add the following two lines to the end of the script:

Code: [Select]

echo.
pause


The pause will halt execution of the script and you get a message saying "Press any key to continue...". The echo. is just there to force the "Press any key..." message to be displayed on its own line rather than running together with your IP information.
Title: External Ip through DOS
Post by: .:F3ar0n:. on June 27, 2006, 09:57:50 PM
Haha

Sully, how did you know....Thats exactly right..I was stupid till I just ran cmd and did the whole

cd C:\documents and settings\david\desktop\getip.bat

anyways, didn't care to look up how to do a pause in cmd prompt. Thanks for the info.

I've actually been learning a good bit with cmd commands...like getting ip and info through netstat/ netstat -an, tracert and nslookup. Pretty interesting cause I really didn't know the power of dos commands through network before
Title: External Ip through DOS
Post by: Billabond1 on June 28, 2006, 12:25:36 AM
your time would be better spent learning linux commands   :bigsmile:
Title: External Ip through DOS
Post by: The Shoctor on June 28, 2006, 11:53:20 AM
Know both. Pwn all.