473,748 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple IPs

Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server, even
though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20% max.
I would like to know if anyone knows what is causing this problem. What
command in c# can I use to assign the service a different IP to download ie
121.232.21.5 maybe that would help with the problem.

Fred

Jul 19 '07 #1
25 3874
Fred,

It sounds strange that you would have eight NIC cards with the same IP
address. That's certainly going to cause some problems. Why do you have so
many? Adding extra NIC cards is not going to give you any edge in
downloading from the web, as the bottleneck is the actual network pipe.

As for changing the service to use a different IP to download (and it
sounds like you aren't downloading, but rather, serving up the mp3s), that's
dependent on the service itself. It might not offer a command line way to
change whatever IP address it's using.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Fred" <fr*******@yaho o.comwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server, even
though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20% max.
I would like to know if anyone knows what is causing this problem. What
command in c# can I use to assign the service a different IP to download
ie 121.232.21.5 maybe that would help with the problem.

Fred

Jul 19 '07 #2
On Wed, 18 Jul 2007 22:17:38 -0700, Fred <fr*******@yaho o.comwrote:
Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server,
even though its not that bandwidth intensive. (30kps on a 100Mbps line)
Why do you think that the download is only 30kbps? Did you implement code
specifically to throttle your downloads?

If so, you should post the code that you think is not doing what you want
it to do. It's hard to answer the question without the code.

Of course, if you really have a 100Mbps Internet connection, one would not
expect a _single_ file download to saturate your bandwidth, since the
other end (the hosting server sending you the data) is highly unlikely to
be able to serve up the data that fast. But a) a 100Mbps Internet
connection is extremely unusual (so it seems unlikely that's what you
really have) and b) if you were to try to download many files at once,
that could in fact saturate even a 100Mbps connection.

Pete
Jul 19 '07 #3
sorry if i wasn't clear enough in the first post. the server has only 1 NIC
but has 8 ip addresses assigned to it.
actually it's not the service that uses the default ip it's everything. if i
use ie and go to a web page it uses 121.232.21.1.
How can I make my app aware of the multiple IPs and specify which one to
use?
As for changing the service to use a different IP to download (and it
sounds like you aren't downloading, but rather, serving up the mp3s),
that's dependent on the service itself. It might not offer a command line
way to change whatever IP address it's using.
I wrote the service myself so I have access to the source code. just need to
know the correct c# statement to use.

Fred

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Fred,

It sounds strange that you would have eight NIC cards with the same IP
address. That's certainly going to cause some problems. Why do you have
so many? Adding extra NIC cards is not going to give you any edge in
downloading from the web, as the bottleneck is the actual network pipe.
>
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Fred" <fr*******@yaho o.comwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server,
even though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20% max.
I would like to know if anyone knows what is causing this problem. What
command in c# can I use to assign the service a different IP to download
ie 121.232.21.5 maybe that would help with the problem.

Fred

Jul 19 '07 #4
no, thats the speed i get from the server that hosts the mp3s

the code uses TcpClient
TcpClient tcpClientC = new TcpClient ();

How can I tell it to use an ip of my choice?
Jul 19 '07 #5
I wish people would quote when they reply.

On Thu, 19 Jul 2007 14:58:37 -0700, Fred <fr*******@yaho o.comwrote:
no, thats the speed i get from the server that hosts the mp3s
What's the speed you get from the server that hosts the mp3s? The 30kpbs?

If the server hosting the mp3s is only passing you the data at 30kpbs,
you're not going to download the data any faster than that. I certainly
don't see how your own network could get saturated under those conditions,
unless your Internet connection is only a 30kbps connection (56K modem on
a noisy phone line).
the code uses TcpClient TcpClient tcpClientC = new TcpClient ();

How can I tell it to use an ip of my choice?
I also don't understand what you mean when you say that you've got a
single NIC, but 8 IP addresses. I've never heard of such a thing. How do
you get your one NIC configured for 8 different IP addresses?

Beyond that, why do you think that using different IP addresses is going
to help, if it's your network adapter that's saturated, even if it _is_
possible to have multiple IP addresses assigned to a single network
adapter?

If you have multiple network adapters, you can use the IP address assigned
to each adapter as the address to which a Socket or Tcp/UdpClient is
bound, which will affect how and whether inbound data gets sent to the
Socket or ...Client. However, you can't control how your outbound data is
sent, including connection requests. The network driver looks at the
destination address and selects what it thinks is an appropriate route.
(There are, of course, really low level ways to affect the routing, but
this isn't accessible by .NET I don't think).

Pete
Jul 20 '07 #6
>the code uses TcpClient TcpClient tcpClientC = new TcpClient ();

How can I tell it to use an ip of my choice?
I also don't understand what you mean when you say that you've got a
single NIC, but 8 IP addresses. I've never heard of such a thing. How do
you get your one NIC configured for 8 different IP addresses?

Actually, this is quite common....my department has multiple ip addresses on
single NICS as well. :)

Mythran
Jul 20 '07 #7
On Fri, 20 Jul 2007 08:32:12 -0700, Mythran <ki********@hot mail.comwrote:
Actually, this is quite common....my department has multiple ip
addresses on single NICS as well. :)
Okay, so how do you do that?

I'm got a computer with a single NIC. How do I assign multiple IP
addresses to it?

In any case, the real point here is that it's the hardware that determines
the bandwidth, not the number of logical addresses assigned to the
hardware. Using a different IP address on the same hardware isn't going
to help throughput.

Pete
Jul 20 '07 #8
Getting a bit OT but, to get multiple IP's on a box, you need to add
multiple network cards.

"Peter Duniho" <Np*********@nn owslpianmk.comw rote in message
news:op******** *******@petes-computer.local. ..
On Fri, 20 Jul 2007 08:32:12 -0700, Mythran <ki********@hot mail.com>
wrote:
>Actually, this is quite common....my department has multiple ip
addresses on single NICS as well. :)

Okay, so how do you do that?

I'm got a computer with a single NIC. How do I assign multiple IP
addresses to it?

In any case, the real point here is that it's the hardware that determines
the bandwidth, not the number of logical addresses assigned to the
hardware. Using a different IP address on the same hardware isn't going
to help throughput.

Pete
Jul 20 '07 #9
On Fri, 20 Jul 2007 09:33:29 -0700, <Gedwrote:
Getting a bit OT but, to get multiple IP's on a box, you need to add
multiple network cards.
Two people have already claimed that's not true.

I am curious to hear how they accomplish it.
Jul 20 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
7719
by: Rolf Wester | last post by:
Hi, I have a form with a select element with multiple="true". When using the GET method (I suppose the same happens with the POST method) I can seen that the form sends channels=CH1&channels=CH2 when CH1 and CH2 have been choosen. $_GET gives me "CH2". Is there any way to get all the choosen channels elements? I would be very appreciative for any help. Thank you in anticipation. Regards
66
5025
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
11
4971
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g., http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl) that indicate that ASP will queue up requests when they come in with the same "session".
6
4297
by: Ben Hallert | last post by:
Hi guys, I'm trying to figure out what bone headed mistake I made on something I put together. I've got a form (named 'context') that has a variable number of select-multiple inputs on it. Based on the number of variables passed through a GET string, I want to multiply the total number of selected items for each together to see how many possible combinations the selected items are generating. The following snippet of code...
22
23383
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete examples?
9
23083
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated to a pool. If I assign only one application to a applicaton pool and have multiple worker processes assigned to that pool. Will my application be processed by many worker processes?
9
2776
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I have been commissioned to create a web-based application for a client. It has a formsaunthentication...
4
4701
by: Matt Kruse | last post by:
While developing an internal IE6-only webapp, a discussion started about the 'best' way to apply classes to data tables across multiple pages. The two arguments were: 1. Apply a single class to each table. That class (possibly in combination with other classes on child elements) controls every part of the table - layout, colors, fonts, etc. Example: class="data" PROS: Easier to standardize, less specificity confusion, everything is...
35
9361
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from 500000 to 3200000 of a file whose size is say 20MB... how do i request a download which starts directly at 500000th byte... thank u cheers
58
8115
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also the parts section an i seem to be having trouble. When i try to insert into the parts section i get the error Invalid character value for cast specification. But not sure what i am doing wrong. Here is what i am using to insert. All the sections...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.