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). 7 2061
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********@dis cussions.micros oft.com> wrote in message
news:6B******** *************** ***********@mic rosoft.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).
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.
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********@dis cussions.micros oft.com> wrote in message
news:BB******** *************** ***********@mic rosoft.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.
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********@dis cussions.micros oft.com> wrote in message news:BB******** *************** ***********@mic rosoft.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.
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********@dis cussions.micros oft.com> wrote in message
news:E4******** *************** ***********@mic rosoft.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********@dis cussions.micros oft.com> wrote in message news:BB******** *************** ***********@mic rosoft.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.
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.d e
Econobeing,
Here is a complete snippet as Nick describes in C#
\\\
Process p = new Process();
ProcessStartInf o pi = new ProcessStartInf o();
pi.UseShellExec ute = false;
pi.RedirectStan dardOutput = true;
pi.Arguments = "www.google.com ";
pi.WorkingDirec tory = "C:\\windows\\s ystem32";
//this for nt* computers
pi.FileName = "ping";
p.StartInfo = pi;
p.Start();
System.IO.Strea mReader sr = p.StandardOutpu t;
System.Text.Str ingBuilder sb = new System.Text.Str ingBuilder("");
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 maintain
authentication)
2) some basic content (text, photos, audio) uploading mechanism
3) basic content browsing in a somewhat neatly formatted presentation
knowing how quickly they wanted something they could look at, i
initially suggested...
|
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 find it now. Anyone know
about this? Thanks.
pcchong
|
by: Steevo |
last post by:
Any suggestions as to the best programs for cloaking email addresses?
Many thanks
--
Steevo
|
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 together a website that uses his domain name and
url directs to my server. It has a (sorry) flash intro page that
continues to his main page. When I click on a navigation button, the
address reverts back to my webpage address. Without using shitty frames...
|
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.
| |
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
working. I need to debug. I get the error:
"Unable to start debugging on the web server. The debugger cannot
connect to the remote computer" ...and something about it not existing
or firewall problems. I'll note here that I can manually...
|
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 website, nothing shows up in
the Website Data Sources window. I added a few different strongly-typed
Datasets to my website, and they don't show up. The only way I could get
anything to show up was to create a new class that's derived from a...
|
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 come up against a small problem. I've configured the database and set up a test user through the ASP.NET Website Administration Tool (Website ASP.NET Configuration), I've created a user registration page and a user login page but when I try to...
|
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")
Request.ServerVariable("remote_addr")
But I am getting something like '125.1.1*'
What do I need to get the IP address assigned my the ISP.
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |