Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 17th, 2004, 02:43 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default External Access to my site

Hi, I've created a site on my localhost. When I log in to http://localhost/webapp locally through my workstation, I can access it. My worstation IP is say 124.5.12.257. If I do the same from a different computer existing on the same domain like: http://124.5.12.257/webapp, I can still access it.

Now if I need to give a new IP to this site and access it externally from other computers, what are the steps that I need to follow. Would appreciate replies to this question.

TIA
Praveen
Reply With Quote
  #2 (permalink)  
Old March 17th, 2004, 03:46 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Are you talking about a new IP address, or an additional IP address?

In the latter scenario, if you're using IIS you can have i listen to multiple IP addresses. On the properties dialog for you Web app, simply add the new IP address (by default, it will listen to all addresses it is assigned, so out-of-the-box this should already work.)

If you have a new IP address, simply refer the external machines to http://NewIPAddress/Webapp

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old March 17th, 2004, 04:29 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar, tx for your reply. I got your answer about the additional IP and the new IP. I think I didn't explain my problem correctly.

In IIS, you can see a "Default Web Site", underwhich all the web applications will be present.

I want to create my own web site, say www.praveen.com. When I create this one, I get a dialog box where I need to give the IP for web site identification. This one can't be the same as the "Default Web Site" because it'll say a duplicate address exists. Now when I access this web site externally from some other workstation, it should redirect to my webapp application that I built earlier.

So how do I give a different IP address to identify my new web site. I hope I'm clear now. Is there any steps that I need to follow.

TIA
Praveen
Reply With Quote
  #4 (permalink)  
Old March 17th, 2004, 04:38 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I see.

Under IIS (or any other Web Server), only *one* Web site can listen to a unique IP Address / Port number combination. So you can't have two Web sites listen to http://111.222.111.222:80 at the same time.

However, what you could do is change the Host header. Together with the IP address and port number, this is a unique combination. You can set the Host Header on the same Properties dialog where you can set the IP address. With a host header, this is possible:

IP Address: 111.222.111.222
Portnumber: 80
Hostheader: www.praveen.com

IP Address: 111.222.111.222
Portnumber: 80
Hostheader: www.AnotherSite.com

When you requests one of these sites, IIS will examine the Host Header, and redirect to the correct Web site.
To enable this, you'll need to create two distinct Web sites under IIS, not two applications under the Default Web Site. This means you can't use Windows XP, but need a real server like Windows 2000 Server or Serer 2003.

For this to work, you may need to change your local DNS Server, so it knows which hostheader points to what server. If it's just a work group network, you can map the hostheaders to IP addresses in the LMHosts file of your network card.
If you're talking about internet enabled domains, your ISP or DNS records admin can make these changes for you.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #5 (permalink)  
Old March 17th, 2004, 05:02 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks again Imar, your explanation was really easy to understand. Now I'm sure of what I need to do.

So I need to contact my system administrator to register my web server's IP in the DNS Server. For knowledge sake, can you guide me as to where I can find a detailed explantion of configuring the DNS Server to listen to multiple web servers. If you can give me a link, then it'll be gr8. I'll also search the internet for this, but you may be knowing a better place.

Thanks for your replies throughout. Kindly do this one also. TIA
Praveen

Reply With Quote
  #6 (permalink)  
Old March 17th, 2004, 05:12 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Are you talking about an Internet site or a local (Intranet) site?

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #7 (permalink)  
Old March 17th, 2004, 05:14 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,
 I'm talking about Intranet Site.
Thanks, Praveen
Reply With Quote
  #8 (permalink)  
Old March 17th, 2004, 05:31 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

In that case, your system admin needs to map www.YourSite.Com and www.YourOtherSite.com both to your (local / internal) IP address. How this is done, depends on the DNS Server you're using.

You can also add this to the lmhosts file in Windows on the computers that need to reach your server:

1.1.1.1 YourSite.Com
1.1.1.1 YourOtherSite.Com

Where 1.1.1.1 is your local IP address. I am not sure if the WINS stuff can override external DNS info correctly, so if www.YourSite.Com already exists, this may not work.

Take a look at the WINS tab of the TCP/IP Properties for your network card. You'll find the lmhosts file in your Windows\System32\Drivers\etc folder.

I am not a system admin, so I am afraid I can't help you much further with this....

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #9 (permalink)  
Old March 17th, 2004, 06:49 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar, it works fine in the INTRANET zone. For INTERNET zone, I've spoken to my system admin to show me on how to configure host header names in DNS server following which I'll test it.

Thanks for all your help. When I started this work, I had no clue on how to continue. But now I have a good knowledge, which is because of your timely help. Thanks again. You were of great help.

Regards,
Praveen

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running external applications from access thisgent Access VBA 2 July 9th, 2007 05:03 PM
Access external link to Excel in Sharepoint wortinguk Access 1 October 20th, 2006 10:32 AM
Open external DB in MS Access VB problem Derek_05 Access VBA 1 January 21st, 2006 03:51 AM
Rename external files from within access timmaher Access VBA 1 March 24th, 2004 10:37 AM
Want to code external linked tables in Access Michael Allaire Access VBA 1 July 23rd, 2003 06:11 PM



All times are GMT -4. The time now is 10:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.