ipconfig & the real IP

What's the best way to setup a home network? Why should I care about BGP?

ipconfig & the real IP

Post by hackington on Fri May 13, 2011 3:58 pm
([msg=57368]see ipconfig & the real IP[/msg])

Hey guys, so I am looking to get the 'real' IP address so that I can remotely log into my computer.

If I do an ipconfig I get a 192.xxx.xxx this is not the IP needed for remote log in.
If I do whatsmyip.org I get a 89.xxx.xxx this is the one for remote log in right??

So here's my questions.

Can I get this real IP or '89.xx' from the cmd or by running a script?

Thanks guys

-- Fri May 13, 2011 3:59 pm --

btw, I know I could make a script that goes to whatsmyip.org and pulls the IP from there lol
hackington
New User
New User
 
Posts: 8
Joined: Wed May 04, 2011 5:11 pm
Blog: View Blog (0)


Re: ipconfig & the real IP

Post by fashizzlepop on Fri May 13, 2011 4:12 pm
([msg=57369]see Re: ipconfig & the real IP[/msg])

No you can not, as far as I know. Your computer doesn't really care about it.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: ipconfig & the real IP

Post by hackington on Fri May 13, 2011 6:14 pm
([msg=57374]see Re: ipconfig & the real IP[/msg])

I made a page with php that gets the 'real ip'

Now next problem,

How do I pull the contents of this page to a .txt file using a .bat on the cmd in Windows (I don't want to use any xtra tools)

Is there a Wget or similar on the cmd

Thanks
hackington
New User
New User
 
Posts: 8
Joined: Wed May 04, 2011 5:11 pm
Blog: View Blog (0)


Re: ipconfig & the real IP

Post by spyworld on Fri May 13, 2011 7:49 pm
([msg=57378]see Re: ipconfig & the real IP[/msg])

ipconfig provide internal ip address.
whatsmyip.org display public ip address.

Of course you're familiar with public and private ip.

You have to setup a static ip first. Then access router panel and enable application port and point to your static ip.

---------------------------------------------------------

cmd is a command prompt for windows based. Terminal application is unix command shell for unix based.

wget is a shell command. cmd don't have any similar command like wget in linux. But there are exist application similar application like wget in windows. WGET for Windows.

http://users.ugent.be/~bpuype/wget/
spyworld
New User
New User
 
Posts: 5
Joined: Fri May 13, 2011 7:32 pm
Blog: View Blog (0)


Re: ipconfig & the real IP

Post by fashizzlepop on Sat May 14, 2011 11:37 pm
([msg=57408]see Re: ipconfig & the real IP[/msg])

In other words... "No."
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: ipconfig & the real IP

Post by Muskelmann098 on Sat May 28, 2011 4:03 pm
([msg=57823]see Re: ipconfig & the real IP[/msg])

I believe a Perl script could very easily go to a website, fetch the IP displayed and put it in a txt file. If Perl's not your thing, you could do it in just about any other language. PHP might not be the best however and I don't know batch, but I'm sure C/C++ could do it. Perl is very clever with regexes though, that might help you.

Not sure, but it seems this is kinda what you're looking for.
Muskelmann098
Experienced User
Experienced User
 
Posts: 78
Joined: Mon Feb 02, 2009 9:39 am
Blog: View Blog (0)


Re: ipconfig & the real IP

Post by Assassian360 on Sat May 28, 2011 7:22 pm
([msg=57824]see Re: ipconfig & the real IP[/msg])

hackington wrote:Hey guys, so I am looking to get the 'real' IP address so that I can remotely log into my computer


You're all focusing on getting the IP too much.

Are you needing to access your computer from another computer owned by you? If this is the case and you might find that a remote viewing client program like TeamViewer would work. You never have to tell it anything about IP.

Although it really depends what exactly you are wanting to be able to do with your remote connection to your computer.
So what are you wanting to be able to do?

You could also find out your current home networks global IP always by just using something like Dynamic DNS. It just automatically updates itself to provide you with either accessing by IP or by a chosen domain name.
Assassian360
Poster
Poster
 
Posts: 135
Joined: Sat Jun 26, 2010 1:37 am
Blog: View Blog (0)


Re: ipconfig & the real IP

Post by gianfun on Sun Jun 26, 2011 10:37 am
([msg=59055]see Re: ipconfig & the real IP[/msg])

I'm sorry for ressurecting this thread, but I think it might be possible to access your php script (depending on where it is hosted) via telnet using port 80 (as if you were accessing a web page.)
This will get you the raw data from the page, but I guess maybe you could just do a search for the ip address (perhaps put a sequence of characters before and after? Such as AAAxxx.xxx.xxx.xxxBBB where the x's are numbers. Then you search for AAA and read until you get to BBB)
I don't know if the searching is easily done in batch.
And, to pass the info you read to the .txt, you can use the echo >> command (or smth like that)
:)
gianfun
New User
New User
 
Posts: 3
Joined: Sun Jun 29, 2008 1:27 pm
Blog: View Blog (0)



Return to Networking

Who is online

Users browsing this forum: No registered users and 0 guests