Need control over LocalEndPoint for multiple IPs

B

beauzero

I have to send out timed requests to a web service with a limitation of 1
request per 6 seconds. I am using a windows service to run the app. and I
have 10 IPs on the box. I need to basically send out 10 requests every six
seconds ...one request per IP. I know I can get access to it through
System.Net.Sockets but that would leave a lot of overhead to code.

Is there an easy way to get access. Even through system.net.httpwebrequest
would be fine. The IPEndPoint is hidden everywhere.
 
D

Dan Rogers

Do you mean you want to send OUT thru one of 10 NIC's on the box you are
sending from? Or do you mean you want to write a program that tests all 10
IP's as web service endpoints? If the latter, you can just encode the URL
as http://10.10.10.10/whatever.aspx and thereby bypass the DNS lookup.

Hope this helps

Dan Rogers
Microsoft Corporation
--------------------
 
B

beauzero

Neither. One NIC, 10 static IPs, route requests thru individual IPs (must
have control). Must be service based and .NET framework 1.1

Dan Rogers said:
Do you mean you want to send OUT thru one of 10 NIC's on the box you are
sending from? Or do you mean you want to write a program that tests all 10
IP's as web service endpoints? If the latter, you can just encode the URL
as http://10.10.10.10/whatever.aspx and thereby bypass the DNS lookup.

Hope this helps

Dan Rogers
Microsoft Corporation
--------------------
 
D

Dan Rogers

I'm not getting it. Is the problem that you need to send thru different IP
addresses that you've homed to specific IIS web sites (!), or is the
problem that within a specific service, you want to do something to a
specific IP address.

In either case, you should be able to just use the IP address you want
(from code). If you want one service implementation to sit on 10 different
IP addresses, you will need to use IIS site settings to set this up. It
may mean setting up one site per IP address, and having each site have a
copy of your service implementation on it.

It's just not clear to me what the thing you are trying to do is... The
simple solution is to just use the IP address you desire!

Sorry

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Need control over LocalEndPoint for multiple IPs
thread-index: AcToRDHEDAECUl1NSBuxBm5A+jhRVw==
X-WBNR-Posting-Host: 63.170.201.2
From: "=?Utf-8?B?YmVhdXplcm8=?=" <bclaar@(dontsp).academicbookservices.com>
References: <[email protected]>
Subject: RE: Need control over LocalEndPoint for multiple IPs
Date: Wed, 22 Dec 2004 08:35:06 -0800
Lines: 56
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet.webservices:27350
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices

Neither. One NIC, 10 static IPs, route requests thru individual IPs (must
have control). Must be service based and .NET framework 1.1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top