PDA

View Full Version : Windows 7 + IIS7 + 2 NICs


Imaulle
05-20-2009, 08:48 PM
I've done my googleing and I'm having a lot of trouble figuring out how to configure IIS7 to work with my dual internet connections in Windows 7

basically what I want is, for my default site in IIS to use one NIC and everything else on the computer to use the other nic. both of the connections going to the computer are 50/10. is this even possible with Windows 7 RC?

mmtom
05-20-2009, 09:08 PM
I'm speaking purely from a Server 2008 standpoint...

When you set the binding in IIS (for whichever binding; http, https), there is a dropdown list that will display all of the IPs on that machine. Select the IP for your "frontend" NIC and you should be good to go.

http://www.phishthis.com/wp-content/uploads/2009/05/IISIP.JPG

Imaulle
05-20-2009, 10:46 PM
okay that seemed to work. but the website only works for me when I put the IP in the browser. it doesn't load for anyone else..

xxEIEIOxx
05-21-2009, 12:00 AM
okay that seemed to work. but the website only works for me when I put the IP in the browser. it doesn't load for anyone else..

Firewall?

mmtom
05-21-2009, 02:08 AM
okay that seemed to work. but the website only works for me when I put the IP in the browser. it doesn't load for anyone else..

Make sure you've got the World Wide Web Publishing exception enabled in the firewall. That will enable port 80 TCP for just the WWW service.

Also, verify that your hosting provider allows you to serve HTTP traffic. Many won't. A few years ago when I was using Charter, I think, I had to set it to answer on 8080. I don't know if it's still an issue today.

Imaulle
05-21-2009, 02:35 AM
Make sure you've got the World Wide Web Publishing exception enabled in the firewall. That will enable port 80 TCP for just the WWW service.

this fixed it, thank you!

Imaulle
05-21-2009, 05:28 AM
okay everything is working the way I want it with IIS now. but it seems that most of my applications will use the NIC that I have set for IIS. I went into network connections advanced settings and set the priority for the two devices but my applications (firefox,utorrent) still seem to go for the IIS nic :( is this Windows 7 RC bug or is there something else I gotta do?

JBark
05-21-2009, 08:57 AM
How are you setting the priority, the interface metric in advanced settings? If you've set them both then the lowest number should get priority. Or you could just do it the hack way and force the IIS NIC to a slower speed. Windows always defaults to using the fastest speed link.

You can also hardcode uTorrent to use a specific NIC, just go into Options->Advanced and set net.bind_ip and net.outgoing_ip to the IP address of the NIC you want to use.

Imaulle
05-21-2009, 05:19 PM
http://i41.tinypic.com/10onoqp.png

SB5101 is the nic I want everything except IIS to use and the SB5100 is what I have the IP bound to in IIS


there has to be a better way to do this? lol. microsoft is fail in this aspect