Redhatcc Posted April 25, 2008 Share Posted April 25, 2008 Anyone have any idea how to get your external IP address from a command line when your behind a router? I saw on some linux forums how to get around to doing that but... no luck with XP? Any clues or .exe's you can save/run to do this? Thanks... btw lol has to be in a command line.... Link to comment Share on other sites More sharing options...
Mijzelf Posted April 25, 2008 Share Posted April 25, 2008 Well when you're not afraid of digging in html:telnet www.whatismyip.com 80<enter>GET / HTTP/1.1 ^JHost:www.whatismyip.com ^J^J Link to comment Share on other sites More sharing options...
eyeball Posted April 25, 2008 Share Posted April 25, 2008 Ping your domain name and let DNS do the work for you Link to comment Share on other sites More sharing options...
Smiley357 Posted April 25, 2008 Share Posted April 25, 2008 (edited) I found whatsmyip don’t report the IP address correctly if you use a satellite ISP. Edited April 25, 2008 by Smiley357 Link to comment Share on other sites More sharing options...
Redhatcc Posted April 25, 2008 Author Share Posted April 25, 2008 (edited) i cant get telnet to open a connection with www.whatismyip.com on port 80 or any other port >.< is this just my computer being stupid or am i typing it wrong... method 1telnet www.whatismyip.com 80method 2telnet (enter)open www.whatismyip.com 80 (enter)lol ? Edited April 25, 2008 by Redhatcc Link to comment Share on other sites More sharing options...
Mijzelf Posted April 25, 2008 Share Posted April 25, 2008 @Smiley357: Then how does the respons reach you?@Redhatcc: Can you open www.whatismyip.com in a browser? Link to comment Share on other sites More sharing options...
Smiley357 Posted April 25, 2008 Share Posted April 25, 2008 I don’t have satellite but friends do and when I send them to that site for there IP it will give a incorrect IP. So I just walk them through the steps of logging into there router to find there ip. Link to comment Share on other sites More sharing options...
Redhatcc Posted April 25, 2008 Author Share Posted April 25, 2008 yea it comes up fine in browser as far as sifting through html, this should be simple http://whatismyip.com/automation/n09230945.asp Link to comment Share on other sites More sharing options...
Mijzelf Posted April 25, 2008 Share Posted April 25, 2008 Great!telnet www.whatismyip.com 80GET /automation/n09230945.asp HTTP/1.1Host:whatismyip.comworks for me. No digging in html.Maybe you should have a look at your firewall? Link to comment Share on other sites More sharing options...
Redhatcc Posted April 25, 2008 Author Share Posted April 25, 2008 figured out what the problem is but no solution lol.. i "can" telnet into it and connect but what i type doesnt show up and when i send the GET command it goes through but nothing shows up after i hit enter. if i telnet to the site and hit enter it comes up with bad command error, but if i telnet into the server and enter the GET command the cursor goes to the next line so the command went through. if i hit enter after that it comes up bad command error... Link to comment Share on other sites More sharing options...
Mijzelf Posted April 25, 2008 Share Posted April 25, 2008 You should not use enter, but Control-J. Get ... ^JHost:... ^J^J Link to comment Share on other sites More sharing options...
Redhatcc Posted April 25, 2008 Author Share Posted April 25, 2008 (edited) ok got it working lol telnet www.whatismyip.com 80 (enter)GET /automation/n09230945.asp HTTP/1.1 ^j Host:whatismyip.com ^j^jworks :thumbupThank you Mijzelf for your patients and help!!!!Now next step is figure out a way to copy that to a text file lol >.< Edited April 25, 2008 by Redhatcc Link to comment Share on other sites More sharing options...
Tarun Posted April 26, 2008 Share Posted April 26, 2008 I have no idea why people use whatismyip.com. It's much easier to use whatismyip.org Link to comment Share on other sites More sharing options...
hons Posted April 26, 2008 Share Posted April 26, 2008 Try to do it simple!!!!Try this :http://www.dslreports.com/whoisIt will tell you what IP yoursefl is. Link to comment Share on other sites More sharing options...
Smiley357 Posted April 26, 2008 Share Posted April 26, 2008 www.Whatsmyip.org is a lot nicer then .com but how would you use that in a bat file?Redhatcc :Why are you trying to find your IP in a bat file? B/c of the FTP site you are making? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now