Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
__________________
If you're not remembered, you never existed. |
|
||||
|
ipconfig /all
or, NSLookup [hostname] should do it.
__________________
Denton Real Estate is the premiere website for home buyers in the North Texas area. If you're looking for Denton, Tx Real Estate, find your way home at DentonRealEstate.com.
|
|
||||
|
First off, ipconfig /all works on a pc, in an MS-DOS prompt, in case anyone didn't know.
Second, if you are behind a network (say in an office) it won't show you your true IP, but your networked IP. The way how routers and switches, and hubs, and about 20 other terms work, is that the internet comes in, and the device splits it up to many other devices. So to the outside, you all use the same, or similar, IP's.
__________________
If you're not remembered, you never existed. |
|
||||
|
ipconfig /all (or your machines equivilent) should also show your hostname, default gateway, dns servers, etc. If you don't have a publicly available IP, it will most likely use the IP address of your router ... which IS a public address.
__________________
Denton Real Estate is the premiere website for home buyers in the North Texas area. If you're looking for Denton, Tx Real Estate, find your way home at DentonRealEstate.com.
|
|
||||
![]() Just an example of mine right now at the office. I know what you are talking about. My home router shows the DNS. Most corporate solutions for networking block that too though.
__________________
If you're not remembered, you never existed. |
|
||||
|
The problem with using ipconfig is that it will display the IP address assigned to your network interface, which is quite possibly not the IP that websites will see. If you're behind a NAT (Network Address Translator, ie. a router), you're going to have an internal IP on your computer and an external IP on the router. The external IP is the one the sites will see. Using a website the like one suggested earlier will show you the external IP that websites will use to communicate with you, so it's generally more reliable than ipconfig.
|
|
||||
|
Aye, that's why I said don't use ipconfig, and why I showed the screenshot
![]() It's safe to assume that any 192.168.*.* IP is off a router.
__________________
If you're not remembered, you never existed. |
|
||||
|
None of this really matters. If you're behind a router (NAT), you don't have a publicly available address. So, to answer the original question, the website is most likely pulling the address that she is displaying to the public, which is NOT the IP address of her machine but the IP address her ISP is sending to her router ... which is likely dynamic and will change peridocally.
All web servers, when sending you a page, need to know your IP address so they know where to send the page to. They keep a log of which IP asked for which pages. Thus when you go to a website and fill out a form/comment, they will have your IP address logged. Email works in a similar fashion.
__________________
Denton Real Estate is the premiere website for home buyers in the North Texas area. If you're looking for Denton, Tx Real Estate, find your way home at DentonRealEstate.com.
|
|
|||
|
Hey all
Related to this, I have a form I only want to be filled out once per person. Can I ping the user to get their PCs actual ip, so that even if their network or their isp makes a change to their public one I can still identify them? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|