Jason
Jason

Reputation: 17089

How to tell my .NET application which IP address to request from?

If I have a Windows server with more than one IP address, how do I pro grammatically tell different instances of my application to use a different IP address when communicating with the internet?

Upvotes: 5

Views: 105

Answers (2)

SLaks
SLaks

Reputation: 887453

Set ServicePoint.BindIPEndPointDelegate.

Upvotes: 4

Jayy
Jayy

Reputation: 14728

I managed to get round this problem by setting up port forwarding, so the server thought it was just using a different port, but from outside the router it looks like it's using a different IP address. I remember coming to the conclusion that a server can only be assigned one IP address, even if it receives from several.

Upvotes: 0

Related Questions