70470 Posts in 6879 Topics - by 687 Members - Latest Member: Laricwashere

Author Topic: External Ip through DOS  (Read 2405 times)

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
External Ip through DOS
« 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

TekieB

  • Guest
External Ip through DOS
« Reply #1 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

Offline Pride

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 4714
  • Karma: 0
External Ip through DOS
« Reply #2 on: June 26, 2006, 10:00:43 PM »
is running a dos executable count?
Insert witty signature here...

Offline The Shoctor

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 5803
  • Karma: 17
  • Steam ID: shadohawk@shadoworks.net
  • XBox Gamer Tag: TheShoctor
  • XFire: shadoworks
External Ip through DOS
« Reply #3 on: June 26, 2006, 10:44:49 PM »
OMG Who is running DOS!?

Support LAN Play!
ლ(ಠ益ಠლ) "I have more than 20 friends EA!" --FITES.NET
(╯°□°)╯︵ ┻━┻
"Close enough." --UGC League

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
External Ip through DOS
« Reply #4 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.

TekieB

  • Guest
External Ip through DOS
« Reply #5 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

Offline _!Rathe!_

  • Master Sergeant Shooter Sergeant Person
  • Godlike Gamer
  • *
  • Posts: 2296
  • Karma: 0
  • XFire: rathewin2k
External Ip through DOS
« Reply #6 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.
Never, but never question the engineers judgement.

Offline Pride

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 4714
  • Karma: 0
External Ip through DOS
« Reply #7 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:
Insert witty signature here...

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
External Ip through DOS
« Reply #8 on: June 27, 2006, 07:23:09 AM »
lol dont make me write up a "Tips for apple users" guide.

*cough*

Offline The Shoctor

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 5803
  • Karma: 17
  • Steam ID: shadohawk@shadoworks.net
  • XBox Gamer Tag: TheShoctor
  • XFire: shadoworks
External Ip through DOS
« Reply #9 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 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!

Support LAN Play!
ლ(ಠ益ಠლ) "I have more than 20 friends EA!" --FITES.NET
(╯°□°)╯︵ ┻━┻
"Close enough." --UGC League

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
External Ip through DOS
« Reply #10 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)

Offline cuzzNkev

  • Administrator
  • Uber Gamer
  • *
  • Posts: 1705
  • Karma: 0
  • XFire: cuzznkev
External Ip through DOS
« Reply #11 on: June 27, 2006, 09:34:38 AM »
There is no spoon.

Offline sully!

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 4997
  • Karma: 16
  • If the future is now, where's my jetpack?
  • Steam ID: sully213
  • XBox Gamer Tag: FITESully
External Ip through DOS
« Reply #12 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.
Please just walk away. I don't want to have to stand here and say something so awesome that I'll have to remember it the rest of the day. Thank you!

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
External Ip through DOS
« Reply #13 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

Offline Billabond1

  • Vintage VIP
  • Uber Gamer
  • *
  • Posts: 1134
  • Karma: 0
External Ip through DOS
« Reply #14 on: June 28, 2006, 12:25:36 AM »
your time would be better spent learning linux commands   :bigsmile: