|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
get external (public) IP addressHi guys
I need to get the external ip address of company machines that is through out the nation. this became problem for me because most machines are behind professional firewall. when I do ; reqest.servervariable("rmt_addr) I get the public ip address if they don't have professional firewall. thanks again cemal "Cemal" <caymahall***@hotmail.com> wrote in message Uh.....that's the whole point of a firewall...to keep people out.news:374A3C2D-AC82-4FCB-ADA1-D696BF1DC08A@microsoft.com... > Hi guys > > I need to get the external ip address of company machines that is through > out the nation. > this became problem for me because most machines are behind professional > firewall. > > when I do ; reqest.servervariable("rmt_addr) I get the public ip address > if they don't have professional firewall. -- Mike Microsoft MVP Visual Basic "Cemal" <caymahall***@hotmail.com> wrote in message It's annoying, isn't it. Dreadful. I have a similar problem with my bank on news:374A3C2D-AC82-4FCB-ADA1-D696BF1DC08A@microsoft.com... > I need to get the external ip address of company machines > that is through out the nation. this became problem for me > because most machines are behind professional firewall. when > I do ; reqest.servervariable("rmt_addr) I get the public ip > address if they don't have professional firewall. the High Street. Every time I go there at night when they are closed I can't get in because they've locked the door. How annoying. Mike On Sat, 17 Nov 2007 09:40:43 -0600, "Cemal" <caymahall***@hotmail.com> in <374A3C2D-AC82-4FCB-ADA1-D696BF1DC***@microsoft.com> wrote: >Hi guys I don't think you've explained the problem completely because what> >I need to get the external ip address of company machines that is through >out the nation. >this became problem for me because most machines are behind professional >firewall. > >when I do ; reqest.servervariable("rmt_addr) I get the public ip address if >they don't have professional firewall. you've said doesn't make sense. Regardless of whether or not a machine is behind a firewall or not, if it's connected to the Internet then the connection has an external IP address. If the machine is behind a firewall the firewall has an IP address if it's connected to the Internet. In either case the external IP address is visible. --- Stefan Berglund Stefan Berglund wrote:
Show quote > On Sat, 17 Nov 2007 09:40:43 -0600, "Cemal" <caymahall***@hotmail.com> Actually, just pinging any site will almost always return their IP on the > wrote: > in <374A3C2D-AC82-4FCB-ADA1-D696BF1DC***@microsoft.com> > >> Hi guys >> >> I need to get the external ip address of company machines that is >> through out the nation. >> this became problem for me because most machines are behind >> professional firewall. >> >> when I do ; reqest.servervariable("rmt_addr) I get the public ip >> address if they don't have professional firewall. > > I don't think you've explained the problem completely because what > you've said doesn't make sense. Regardless of whether or not a > machine is behind a firewall or not, if it's connected to the > Internet then the connection has an external IP address. If the > machine is behind a firewall the firewall has an IP address if it's > connected to the Internet. In either case the external IP address is > visible. > > --- > Stefan Berglund 'net side unless they have in-house nodes and even then you still get the outer IP, but not the inside 192... type of course. Just open a command prompt and ping name.com and it'll return the IP of name.com. Tracert will do the same thing but ping is easier & faster. Or do I misunderstand something? It works for all my secure site contacts, including banks. The IP is public and never hidden; if you can't do the above, just go and use a whois. No big mystery. Pop` "Pop`" <nodoby@devnull.spamcop.net> wrote in message news:rXJ%i.5714$xt5.3511@trnddc07...> Actually, just pinging any site will almost always return their IP Well, I must admit that I don't understand this Internet stuff, Pop (never > on the 'net side unless they have in-house nodes and even then > you still get the outer IP, but not the inside 192... type of course. been involved with it) but surely a firewalled broadband router will simply return the temporary address it has been allocated by the ISP to which it is connected, which does not actually identify the computer that is currently using that address? Isn't that the way it works? Mike Mike Williams wrote:
Show quote > "Pop`" <nodoby@devnull.spamcop.net> wrote in message True; that's how it works. Although an IP may not change for days or > news:rXJ%i.5714$xt5.3511@trnddc07... > >> Actually, just pinging any site will almost always return their IP >> on the 'net side unless they have in-house nodes and even then >> you still get the outer IP, but not the inside 192... type of course. > > Well, I must admit that I don't understand this Internet stuff, Pop > (never been involved with it) but surely a firewalled broadband > router will simply return the temporary address it has been allocated > by the ISP to which it is connected, which does not actually identify > the computer that is currently using that address? Isn't that the way > it works? > Mike sometimes even weeks at a time, unless the User is paying for a "static" IP address, they do change. Nearly all IP addresses are dynamic. Nothing beyond that connection point is identified UNLESS the User chooses to do so. For instance, one of my posts yesterday shows in the Headers that it came from 141.149.211.213, which is Verizon. I may or may not have that same IP today. If that were an e-mail, it would even have my machine name in it, because my mail client "chooses" to put it there. Some places, like a bank or like business, will have static IPs. In those cases, or even in my case if you got the IP to give you the routing, you could then pin it right down to my specific computer. BUT, no bank is going to allow anything inside their IP port to be exposed to the 'net. If you have a more than passing interest in this stuff, let me know and I'll throw out a couple of URLs for reading purposes; it's the kind of thing that, if you discuss only the basics, you're misleading things in several possibly different ways depending on what the reader audience is looking for and the context of their thoughts<g>. For your purposes I'd recommend simply pinging the URLs you're interested in. Or look them up with a whois if you've a lot to do. To find those sources, just do a Google search for "whois" (no quotes needed) and you'll get a boatload of sites that'll look up an IP based on a site name for you. Or, if you want to see what all is actually available en toto, go to a place like www.dnsstuff.com . There you can find just about anything about any IP that's public information, anywhere in the world. Without joining though you're limited to how many lookups you can do, so read first, then lookup. I've joined because I use them a lot in my spam fighting tactics. How do they know you've been there before and when to lock you out? They keep track of your IP number and pieces of your Access envelope. Soon's your IP changes, you'll be able to do more lookups again. Unless they've changed something in about the last 6 months, anyway, that's how it did work. I don't keep close track. HTH Pop` On Sat, 17 Nov 2007 23:15:22 -0000, "Mike Williams"
<mi***@whiskyandCoke.com> wrote: in <uKabE$WKIHA.5***@TK2MSFTNGP03.phx.gbl> Show quote >"Pop`" <nodoby@devnull.spamcop.net> wrote in message I have an always on DSL connection but I don't pay extra for a static IP>news:rXJ%i.5714$xt5.3511@trnddc07... > >> Actually, just pinging any site will almost always return their IP >> on the 'net side unless they have in-house nodes and even then >> you still get the outer IP, but not the inside 192... type of course. > >Well, I must admit that I don't understand this Internet stuff, Pop (never >been involved with it) but surely a firewalled broadband router will simply >return the temporary address it has been allocated by the ISP to which it is >connected, which does not actually identify the computer that is currently >using that address? Isn't that the way it works? > >Mike > address. However my dynamic IP address stays the same sometimes for months. But the point is that whether it's temporary or permanent the IP address is still visible to the Internet or your machine won't be talking with any other machines on the Internet. It doesn't identify the computer behind the firewall but the connection still has a name and an IP address. If you look at the header of this message you can see the temporary name (which happens to include the IP address) and the IP address on the NNTP hosting line. I was trying to get the OP to explain better because what he said made no sense. I ~think~ he meant that certain machines use a proxy. If that's the case then I'm not sure you can obtain the IP address of a machine behind the proxy without some sort of proprietary communications. The only visible IP address in that case would be that of the proxy. --- Stefan Berglund That's a good point about proxies. That could indeed be what the OP was
getting at without realizing it. Cheers, Pop` Stefan Berglund wrote: Show quote > On Sat, 17 Nov 2007 23:15:22 -0000, "Mike Williams" > <mi***@whiskyandCoke.com> wrote: > in <uKabE$WKIHA.5***@TK2MSFTNGP03.phx.gbl> > >> "Pop`" <nodoby@devnull.spamcop.net> wrote in message >> news:rXJ%i.5714$xt5.3511@trnddc07... >> >>> Actually, just pinging any site will almost always return their IP >>> on the 'net side unless they have in-house nodes and even then >>> you still get the outer IP, but not the inside 192... type of >>> course. >> >> Well, I must admit that I don't understand this Internet stuff, Pop >> (never been involved with it) but surely a firewalled broadband >> router will simply return the temporary address it has been >> allocated by the ISP to which it is connected, which does not >> actually identify the computer that is currently using that address? >> Isn't that the way it works? >> >> Mike >> > > I have an always on DSL connection but I don't pay extra for a static > IP address. However my dynamic IP address stays the same sometimes > for months. But the point is that whether it's temporary or > permanent the IP address is still visible to the Internet or your > machine won't be talking with any other machines on the Internet. > > It doesn't identify the computer behind the firewall but the > connection still has a name and an IP address. If you look at the > header of this message you can see the temporary name (which happens > to include the IP address) and the IP address on the NNTP hosting > line. > > I was trying to get the OP to explain better because what he said made > no sense. I ~think~ he meant that certain machines use a proxy. If > that's the case then I'm not sure you can obtain the IP address of a > machine behind the proxy without some sort of proprietary > communications. The only visible IP address in that case would be > that of the proxy. > > --- > Stefan Berglund Stefan Berglund <sorry.no.kool***@for.me> wrote in
news:cp0vj31m2jlp804c729kmph1blh6ktjm2g@4ax.com: My cable connection stays at the same IP for months as well.> I have an always on DSL connection but I don't pay extra for a static > IP address. However my dynamic IP address stays the same sometimes > for months. The way DHCP works is when the lease expires, and a new one is requested, the request is passed along with a preference to the current/last IP address. So, if the modem's on 24/7, the whole process takes a few 10's of milli-seconds, which is why even tho it's dynamic, it stays the same for months on end. Here's what else I've done.....I set up a cjb.net account to act as a DNS lookup only, not a website re-directer. On my server, I've got an Auto-IP updater running. The updater checks my internet IP once an hour, and if it changes, it automatically logs into CJB.net and updates their DNS. I've had this setup going for years....very reliable....I can get to my PC/network from anywhere just using *********.cjb.net as the IP/server to connect to. Good thing I wrote this post. I'm planning on converting my server over to some Linux distro in the next week or 2, and completely forgot about the IPUpdater service.......hmmmmmm......I'm hoping there's a Linux version of the one I use. Regards, DanS On Mon, 19 Nov 2007 16:50:42 -0600, DanS
<t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t> wrote: in <Xns99EDB6C9CC39Bthisnthatadelphianet@216.196.97.142> Show quote >Stefan Berglund <sorry.no.kool***@for.me> wrote in That's an idea I hadn't thought of. I get my current IP address at the>news:cp0vj31m2jlp804c729kmph1blh6ktjm2g@4ax.com: > >> I have an always on DSL connection but I don't pay extra for a static >> IP address. However my dynamic IP address stays the same sometimes >> for months. > >My cable connection stays at the same IP for months as well. > >The way DHCP works is when the lease expires, and a new one is requested, >the request is passed along with a preference to the current/last IP >address. So, if the modem's on 24/7, the whole process takes a few 10's of >milli-seconds, which is why even tho it's dynamic, it stays the same for >months on end. > >Here's what else I've done.....I set up a cjb.net account to act as a DNS >lookup only, not a website re-directer. On my server, I've got an Auto-IP >updater running. The updater checks my internet IP once an hour, and if it >changes, it automatically logs into CJB.net and updates their DNS. > >I've had this setup going for years....very reliable....I can get to my >PC/network from anywhere just using *********.cjb.net as the IP/server to >connect to. > >Good thing I wrote this post. I'm planning on converting my server over to >some Linux distro in the next week or 2, and completely forgot about the >IPUpdater service.......hmmmmmm......I'm hoping there's a Linux version of >the one I use. > >Regards, > >DanS start of every operation (every five minutes) and use it in SQL for database replication that works fine with IP address alone. Since I'm not hosting my web site I don't think it's necessary to go the extra step and update the DNS every time the IP address changes but it is a cool extra step. :-) --- Stefan Berglund "DanS" <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t> schrieb im Newsbeitrag Why not using the free DynDNS-service?news:Xns99EDB6C9CC39Bthisnthatadelphianet@216.196.97.142... > I'm planning on converting my server over to some Linux > distro in the next week or 2, and completely forgot about the > IPUpdater service.......hmmmmmm......I'm hoping there's a > Linux version of the one I use. There are also Linux-UpdaterTools on their site: http://www.dyndns.com/support/clients/unix.html Olaf "Schmidt" <s**@online.de> wrote in news:Op7jjT3KIHA.4688 @TK2MSFTNGP06.phx.gbl:Show quote > Because I'm using the free cjb.net service. I prefer my 'url' to be > "DanS" <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t> schrieb im Newsbeitrag > news:Xns99EDB6C9CC39Bthisnthatadelphianet@216.196.97.142... > >> I'm planning on converting my server over to some Linux >> distro in the next week or 2, and completely forgot about the >> IPUpdater service.......hmmmmmm......I'm hoping there's a >> Linux version of the one I use. > > Why not using the free DynDNS-service? > There are also Linux-UpdaterTools on their site: > http://www.dyndns.com/support/clients/unix.html > > Olaf *********.cjb.net, rather than *******.dyndns.org. At least with the CJB.net address, if people don't know about it, it's not apparent that it's a dynamic address from the name. Thank's for the tip on the Linux updaters. I'll need that sooner than later. Regards, DanS The world is not round.
You can't get there from here. You have to start from someplace else. If the machine is behind a networked IP address, aka router, you'll never reach it. Unless the machine has sent a remote support request. And that's even "iffy." -- Show quoteSteve Easton "Cemal" <caymahall***@hotmail.com> wrote in message news:374A3C2D-AC82-4FCB-ADA1-D696BF1DC08A@microsoft.com... > Hi guys > > I need to get the external ip address of company machines that is through out the nation. > this became problem for me because most machines are behind professional firewall. > > when I do ; reqest.servervariable("rmt_addr) I get the public ip address if they don't have professional > firewall. > > thanks again > cemal Never? Why is so?? Ofcouse you can, but only if you configure your
router for port forwarding to that exact local machine. No it's not "iffy" (whatever it means :) ). *** Sent via Developersdex http://www.developersdex.com *** Vlad Shcherbakov <vladislav_shcherba***@yahoo.com> wrote in
news:Oe8u80qKIHA.2432@TK2MSFTNGP04.phx.gbl: That still doesn't mean that from the outside world, you'd get the inside > Never? Why is so?? Ofcouse you can, but only if you configure your > router for port forwarding to that exact local machine. No it's not > "iffy" (whatever it means :) ). > > *** Sent via Developersdex http://www.developersdex.com *** PC's IP. Going thru a NAT box, it will still show as the global IP of the rtr WAN port, not the mapped PC's IP. |
|||||||||||||||||||||||