473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to get the IP address of a website without using DNS anything?

a guy in my class made a program in VB6 where he could use the internet
because he used the IP address of a site instead of the DNS address.

i want to make my own browser now that can do that, but i dont know how to
get the IP address of a site. i found a little snippet of code that will get
a list of all the IPs of a site, but that doesn't work at my school. it used
System.Net.Dns.Resolve()

i dont know how he wrote his, but he can use links and everything.

is there a way i can get the IP address of a site without using DNS? cause
DNS is disabled at my school(i dont like saying college).
Nov 16 '05 #1
7 2046
if you open a browser and type http://www.google.com and you get the google
site, then DNS is most definitely not disabled on your network.

If you just want some IP addresses for the sake of testing, open a command
line and type: Ping www.google.com (or any other dns address). You will
get back the IP address of the site.

For the most part, you don't need to look up the ip address of a site. Just
use HTTPWebRequest to issue a request against a web site using the domain
name.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"econobeing" <ec********@discussions.microsoft.com> wrote in message
news:6B**********************************@microsof t.com...
a guy in my class made a program in VB6 where he could use the internet
because he used the IP address of a site instead of the DNS address.

i want to make my own browser now that can do that, but i dont know how to
get the IP address of a site. i found a little snippet of code that will get a list of all the IPs of a site, but that doesn't work at my school. it used System.Net.Dns.Resolve()

i dont know how he wrote his, but he can use links and everything.

is there a way i can get the IP address of a site without using DNS? cause
DNS is disabled at my school(i dont like saying college).

Nov 16 '05 #2
well i took a look at his source today, and from what i can understand. he
uses the Ping thing at DNSstuff.com, which he has the IP address to it
hardcoded into his program. i saw that it took the []'s off of the IP address
it gets back, but how it gets the IP address of of the web page is beyond me.
or how it automatically goes there and uses that function too.

"Nick Malik [Microsoft]" wrote:
if you open a browser and type http://www.google.com and you get the google
site, then DNS is most definitely not disabled on your network.

If you just want some IP addresses for the sake of testing, open a command
line and type: Ping www.google.com (or any other dns address). You will
get back the IP address of the site.

For the most part, you don't need to look up the ip address of a site. Just
use HTTPWebRequest to issue a request against a web site using the domain
name.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.

Nov 16 '05 #3
so he takes the name of the web site, calls Ping at DNSstuff.com, gets the
IP address, and then simply sends a web request to
http://64.233.161.147

this is the exact same thing as typing http://www.google.com into your
browser.

The web site itself normally doesn't care what the DNS name for the site it.
It would only see it if it looked for it, and that would normally not be
good practice anyway, since the owner of the web site may want to change the
name without changing the web programming... so simply typing
http://aaa.bbb.ccc.ddd is usually sufficient to find your way around the
web. That said, any links OFF of that web site will be broken, so you won't
be able to use search engines at all.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"econobeing" <ec********@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
well i took a look at his source today, and from what i can understand. he
uses the Ping thing at DNSstuff.com, which he has the IP address to it
hardcoded into his program. i saw that it took the []'s off of the IP address it gets back, but how it gets the IP address of of the web page is beyond me. or how it automatically goes there and uses that function too.

"Nick Malik [Microsoft]" wrote:
if you open a browser and type http://www.google.com and you get the google site, then DNS is most definitely not disabled on your network.

If you just want some IP addresses for the sake of testing, open a command line and type: Ping www.google.com (or any other dns address). You will get back the IP address of the site.

For the most part, you don't need to look up the ip address of a site. Just use HTTPWebRequest to issue a request against a web site using the domain name.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.

Nov 16 '05 #4
well he can use search engines in his.

i'm no good with VB, but heres the link to it, it has all the source code
and everything to it:

http://www.planet-source-code.com/vb...57949&lngWId=1

i couln't understand it, but i've seen it in action and it works the way i
want mine to.

"Nick Malik [Microsoft]" wrote:
so he takes the name of the web site, calls Ping at DNSstuff.com, gets the
IP address, and then simply sends a web request to
http://64.233.161.147

this is the exact same thing as typing http://www.google.com into your
browser.

The web site itself normally doesn't care what the DNS name for the site it.
It would only see it if it looked for it, and that would normally not be
good practice anyway, since the owner of the web site may want to change the
name without changing the web programming... so simply typing
http://aaa.bbb.ccc.ddd is usually sufficient to find your way around the
web. That said, any links OFF of that web site will be broken, so you won't
be able to use search engines at all.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"econobeing" <ec********@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
well i took a look at his source today, and from what i can understand. he
uses the Ping thing at DNSstuff.com, which he has the IP address to it
hardcoded into his program. i saw that it took the []'s off of the IP

address
it gets back, but how it gets the IP address of of the web page is beyond

me.
or how it automatically goes there and uses that function too.

"Nick Malik [Microsoft]" wrote:
if you open a browser and type http://www.google.com and you get the google site, then DNS is most definitely not disabled on your network.

If you just want some IP addresses for the sake of testing, open a command line and type: Ping www.google.com (or any other dns address). You will get back the IP address of the site.

For the most part, you don't need to look up the ip address of a site. Just use HTTPWebRequest to issue a request against a web site using the domain name.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.


Nov 16 '05 #5
Dude. You're wasting my time.

You want to "do the same thing" as code that has been released into open
source. DOWNLOAD IT

What do you want me to do, read it and explain it to you?

If you have a question about a snippet of code, post it on the web and we
can help you with it.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"econobeing" <ec********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
well he can use search engines in his.

i'm no good with VB, but heres the link to it, it has all the source code
and everything to it:

http://www.planet-source-code.com/vb...57949&lngWId=1
i couln't understand it, but i've seen it in action and it works the way i
want mine to.

"Nick Malik [Microsoft]" wrote:
so he takes the name of the web site, calls Ping at DNSstuff.com, gets the IP address, and then simply sends a web request to
http://64.233.161.147

this is the exact same thing as typing http://www.google.com into your
browser.

The web site itself normally doesn't care what the DNS name for the site it. It would only see it if it looked for it, and that would normally not be
good practice anyway, since the owner of the web site may want to change the name without changing the web programming... so simply typing
http://aaa.bbb.ccc.ddd is usually sufficient to find your way around the
web. That said, any links OFF of that web site will be broken, so you won't be able to use search engines at all.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"econobeing" <ec********@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
well i took a look at his source today, and from what i can understand. he uses the Ping thing at DNSstuff.com, which he has the IP address to it
hardcoded into his program. i saw that it took the []'s off of the IP

address
it gets back, but how it gets the IP address of of the web page is
beyond me.
or how it automatically goes there and uses that function too.

"Nick Malik [Microsoft]" wrote:

> if you open a browser and type http://www.google.com and you get the

google
> site, then DNS is most definitely not disabled on your network.
>
> If you just want some IP addresses for the sake of testing, open a

command
> line and type: Ping www.google.com (or any other dns address). You

will
> get back the IP address of the site.
>
> For the most part, you don't need to look up the ip address of a
site. Just
> use HTTPWebRequest to issue a request against a web site using the

domain
> name.
>
> --
> --- Nick Malik [Microsoft]
> MCSD, CFPS, Certified Scrummaster
> http://blogs.msdn.com/nickmalik
>
> Disclaimer: Opinions expressed in this forum are my own, and not
> representative of my employer.
> I do not answer questions on behalf of my employer. I'm just a
> programmer helping programmers.


Nov 16 '05 #6
econobeing wrote:
a guy in my class made a program in VB6 where he could use the
internet because he used the IP address of a site instead of the DNS
address.

i want to make my own browser now that can do that, but i dont know
how to get the IP address of a site. i found a little snippet of code
that will get a list of all the IPs of a site, but that doesn't work
at my school. it used System.Net.Dns.Resolve()

i dont know how he wrote his, but he can use links and everything.

is there a way i can get the IP address of a site without using DNS?
cause DNS is disabled at my school(i dont like saying college).


DNS *disabled*? I bet not... or is everybody that good at memorizing IP
adresses?

SCNR,

--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 16 '05 #7
Econobeing,

Here is a complete snippet as Nick describes in C#

\\\
Process p = new Process();
ProcessStartInfo pi = new ProcessStartInfo();
pi.UseShellExecute = false;
pi.RedirectStandardOutput = true;
pi.Arguments = "www.google.com";
pi.WorkingDirectory = "C:\\windows\\system32";
//this for nt* computers
pi.FileName = "ping";
p.StartInfo = pi;
p.Start();
System.IO.StreamReader sr = p.StandardOutput;
System.Text.StringBuilder sb = new System.Text.StringBuilder("");
int input = sr.Read();
while (input != -1)
{
sb.Append((char) input);
input = sr.Read();
}
MessageBox.Show(sb.ToString());
///

However don't expect too much from it on your school that you can than go
around the firewall.

The ping command is one of the first commands that is catched by firewalls.
While it can also be that your school has a complete private network, what
means that they don't use the external ip conventions however have there own
which is renumbered by routering and you are only behind a proxy.

You see that direct when your computer at school in the network has an IP
number that not start with 10, 150 or 192.168 although even than it says
nothing.

(In past every computer had its own IP address however than it is direct
connected to the global DNS).

I hope that this give some more understanding now.

Cor

Nov 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Harry Slaughter | last post by:
I've got a client who wants to see some immediate results on a brand new website. within a week, they'd like to see the following: 1) basic user authentication (using php sessions/cookies to...
8
by: pcchong | last post by:
what is the simplest way to put the email address on the homepage so that it is not readable by email extractor or search engine? I remember someone wrote a simple script to do that, but I can't...
117
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
31
by: wallster | last post by:
please keep the flaming to a minimum (a bucket of water is next to me) but I have a question someone here might be able to explain in basic terms for a dunce like me. I helped a friend put...
15
by: dee | last post by:
Hi, I'm curious why MS decided to have Transfer hide the target page's url invisible? Any guesses ? Thanks. Dee.
8
by: Fred Flintstone | last post by:
I have an odd problem. I'm beating myself bloody trying to get debugging to work. I have VS.Net 2005 installed on a Windows XP SP2 workstation and on a W2003 Server. The asp.net application is...
19
by: cpnet | last post by:
I'm using VS2005, C#, ASP.NET 2.0. I'm trying to create a report using SQL Reporting Services (to be used in local mode so I don't have to deal with SQL Server). When I create a new report in my...
2
by: Wayne Smith | last post by:
Applies to: Visual Studio 2008 Professional Hi everyone, I'm in the middle of creating a website with VS2008 and I'm trying to integrate a user registration/login section on the website but I've...
15
by: Mike | last post by:
Hi ASP Gurus, Please help me solving my problem. I am trying to get the clients IP address but I am not able to do it successfully. I have tried: Request.ServerVariables("http_user_agent")...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.