Multiple IPs

  • Thread starter Thread starter Fred
  • Start date Start date
ok that may be true. but i would still like to know if theres a way to tell
my program to send data from a different ip in c#.
 
Even so, the OP isn't going to change his bandwidth capacity by using
different IP addresses.

This is true, I think.
It had better be. [...]
I'm not sure what you are saying here.

I'm saying that "It had better be [true]", in reply to the statement "This
is true".
If your NIC has multiple IP addresses, you aren't going to get extra
bandwidth out of it. If it is a 100Mbps card it is never going to
transfer data faster than that, compression aside.

That's my point. If using multiple IP addresses _did_ make something
faster, it could only be because the 100Mbps card (for example) wasn't
already using the full 100Mbps with a single IP address.

I wouldn't want a network card like that.

Pete
 
ok that may be true. but i would still like to know if theres a way to
tell my program to send data from a different ip in c#.

No, not really. You have very little control over which network card is
actually used, at least via sockets (in .NET or otherwise).

That said, if you bind to a specific address, your network communications
will appear to come from a specific address, and replies will be sent to
that specific address. And of course, if you only have one network card
then of course that one card will always be used, even if you have
multiple IP addresses assigned to the card.

So far, you haven't really described what problem it is exactly you're
trying to solve. It's already been pointed out that there's no
correlation between which IP address you're using and the available
bandwidth used. You don't get more bandwidth by using different IP
addresses.

So if you still want to specify an IP address, you must be trying to solve
some other problem instead. If you can explain what problem you're trying
to solve, you would get better answers.

Pete
 
That's the only problem I'm trying to solve. I'm getting new hardware for
the server.
So if .NET doesn't provide direct access to the NIC, then what language
does? For future reference
 
That's the only problem I'm trying to solve.

What is the only problem you're trying to solve? To what does the word
"that" refer? Bandwidth is the only problem you've mentioned so far, and
it has nothing to do with what IP addresses are used.
I'm getting new hardware for the server.

If that's relevant, you might want to explain why. It doesn't seem to be.
So if .NET doesn't provide direct access to the NIC, then what language
does? For future reference

Define "direct access to the NIC". To me "direct access" means you are
communicating directly with, and controlling the operation of, the NIC.
There is no user-level API that allows this. You would need to write a
driver for the NIC to do that.

If you mean something else, then you need to be more clear about what you
mean.

Pete
 
Peter said:
Even so, the OP isn't going to change his bandwidth capacity by
using different IP addresses.

This is true, I think.
It had better be. [...]
I'm not sure what you are saying here.

I'm saying that "It had better be [true]", in reply to the statement
"This is true".
If your NIC has multiple IP addresses, you aren't going to get extra
bandwidth out of it. If it is a 100Mbps card it is never going to
transfer data faster than that, compression aside.

That's my point. If using multiple IP addresses _did_ make something
faster, it could only be because the 100Mbps card (for example) wasn't
already using the full 100Mbps with a single IP address.

I wouldn't want a network card like that.
OK, but there's the case where you are connecting from your NIC (using
either one or more IP addresses) to more than one destination. Then I
guess that the bandwidth *used* would be more than the bandwidth to a
single destination (so that you could max out the bandwidth), but it
wouldn't matter if you used the same source IP address. I agree, using
more than one IP address should have no effect.

Cheers,

Cliff
 

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

Back
Top