iis using which ip for outbound connection?

I have a server with multiple websites, each with their own ip address. all ip address are binded to the nic.

lets say website A uses a script to make an outbound connection to outsideserver1.com.
what would be the ip address of the outbound connection?

would it be the websites ip address?
would it be the servers ip address?

and why?
FLUXY01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ngravattCommented:
depends on the ip address of the destination.  you can look at your servers routing table to tell which ip address it will use.

open a command prompt and type

route print


the output will show a list of network destinations and then it will show the interface it will use to reach that destination.
0
miahiCommented:
If the outsideserver1.com is not on the local machine/network, it should use the default gateway and the IP in the same network as the default gateway.
0
b_levittCommented:
the "from" ip in the packet I beleive would be the main ip for the server, not one if the additional IPs you have you have added in the "advanced" properties for the TCP/IP protocol bound for the adapter that is assuming there's only a single adapter in the machine.  If there's multiple adapters in the machine than nic binding order would come in to play, but I won't go into that unless you say so.  The default gateway might determine the destination but it doesn't necessarily influence the nic used to send the packet.  IIRC, if two adapters are on the same network, the packet will simply go out (have the mac address of) the first adapter in the binding order.

I don't really know the reason that MS chose the first IP on an adapter other than it makes the most sense.  Why pick the second one :)?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.