473,372 Members | 1,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

IPAddress::Any vs. IPAddress::Broadcast

ed
What is the difference between IPAddress::Any and IPAddress::Broadcast when
being using by a TCPListener class?
Jul 21 '05 #1
6 7162

"ed" <ed@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
What is the difference between IPAddress::Any and IPAddress::Broadcast
when
being using by a TCPListener class?


You know, this question just screams that you didn't bother to actually
*look* up the two members. The docs for Any and Broadcast spell out their
differences pretty clearly and TcpListener explicitly references
IPAddress.Any.

You would not ever use Broadcast in a listener, that is the address used to
send a broadcast on the network. IPAddress any means allow connections on
any IP.
Jul 21 '05 #2
ed
Daniel,
while I do appreciate the answer in your second paragraph, there is no need
for the beginning of your first. I may be new to .Net, however I am far from
new to programming (and general technology) and prefer to read as much
documentation as I can before posting on the various development newsgroups.
This comes from the experience of answering countless tech support questions,
many of which would have not occurred had the other party read the
instructions. However, I felt it best to withhold my frustrations and simply
provide the answer to the best of my ability.

All that aside, It seems that you didn't even bother to actually *think*
that maybe I did read the documentation and simply wasn't understanding it to
my own satisfaction.

Again, I do appreciate the second part of your answer. However, the *whole*
answer would have been appreciated had either forgone the side comment or
simply not responded at all.

ed

"Daniel O'Connell [C# MVP]" wrote:

"ed" <ed@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
What is the difference between IPAddress::Any and IPAddress::Broadcast
when
being using by a TCPListener class?


You know, this question just screams that you didn't bother to actually
*look* up the two members. The docs for Any and Broadcast spell out their
differences pretty clearly and TcpListener explicitly references
IPAddress.Any.

You would not ever use Broadcast in a listener, that is the address used to
send a broadcast on the network. IPAddress any means allow connections on
any IP.

Jul 21 '05 #3
"ed" <ed@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
Daniel,
while I do appreciate the answer in your second paragraph, there is no
need
for the beginning of your first. I may be new to .Net, however I am far
from
There is. People not reading tocumentation insult everyone they ask. You
insulted him. He is allowed to point this out.
new to programming (and general technology) and prefer to read as much
documentation as I can before posting on the various development
newsgroups.
But you did not.
This comes from the experience of answering countless tech support
questions,
many of which would have not occurred had the other party read the
instructions. However, I felt it best to withhold my frustrations and
simply
provide the answer to the best of my ability.

All that aside, It seems that you didn't even bother to actually *think*
that maybe I did read the documentation and simply wasn't understanding it
to
my own satisfaction.
Then get a book about how IP works. A small explanation is no replacement
for knowledge.

Again, I do appreciate the second part of your answer. However, the
*whole*
answer would have been appreciated had either forgone the side comment or
simply not responded at all.

ed

"Daniel O'Connell [C# MVP]" wrote:

"ed" <ed@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
> What is the difference between IPAddress::Any and IPAddress::Broadcast
> when
> being using by a TCPListener class?


You know, this question just screams that you didn't bother to actually
*look* up the two members. The docs for Any and Broadcast spell out their
differences pretty clearly and TcpListener explicitly references
IPAddress.Any.

You would not ever use Broadcast in a listener, that is the address used
to
send a broadcast on the network. IPAddress any means allow connections on
any IP.

Jul 21 '05 #4
ed
Thomas,
while I do appreciate the answer in your second paragraph, there is no
need
for the beginning of your first.

There is. People not reading tocumentation insult everyone they ask. You
insulted him. He is allowed to point this out.

I would agree that had I insulted him he should be allowed to point this
out. Otherwise I wouldn't have exercised my right to do the same in my last
post. But here you seem to make the same assumption (and thus the same
falicy, only to a greater extint) that because I asked the question, that I
therefor did not read the documentation.
new to programming (and general technology) and prefer to read as much
documentation as I can before posting on the various development
newsgroups.


But you did not.

And yet again the assumption that I did not read the docs.
This comes from the experience of answering countless tech support
questions,
many of which would have not occurred had the other party read the
instructions. However, I felt it best to withhold my frustrations and
simply
provide the answer to the best of my ability.

All that aside, It seems that you didn't even bother to actually *think*
that maybe I did read the documentation and simply wasn't understanding it
to
my own satisfaction.


Then get a book about how IP works. A small explanation is no replacement
for knowledge.

First, I completely agree that knowledge is the most important and the most
effective. But only information comes from books. Knowledge/understanding
comes from a mix of books/docs, experience, and dialogue with others. I've
read the docs, I have quite a bit of experience. However, those two alone
was not enough to provide me with the knowledge I needed to make the right
decision for my situation. It other words, sometimes you just have drop the
ego and ask a question. Especially when you have a job to do.

As far as getting a book is concerned, that is a simple cost/benefit
situation to me. I had a simple question that Daniel was able to provide a
sufficient answer for. Spending $40+ on a book to get an answer to such a
simple question would be (at least for the short term) a waste of money that
I could spend elsewhere on the same project.

ed
Jul 21 '05 #5

"ed" <ed@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
Daniel,
while I do appreciate the answer in your second paragraph, there is no
need
for the beginning of your first. I may be new to .Net, however I am far
from
new to programming (and general technology) and prefer to read as much
documentation as I can before posting on the various development
newsgroups.
This comes from the experience of answering countless tech support
questions,
many of which would have not occurred had the other party read the
instructions. However, I felt it best to withhold my frustrations and
simply
provide the answer to the best of my ability.

I apologize for mis-interpreting your post. Sadly most people do not read
the docs and expect complex, complete answers and explinations of simple
items, many times ones that really are common konwledge. It gets old and
sometimes the temper flares up. Its unfortunate that you happened to be
someone who did read the docs and simply wrote a message that implied to me
that you didn't.
All that aside, It seems that you didn't even bother to actually *think*
that maybe I did read the documentation and simply wasn't understanding it
to
my own satisfaction.


Of course I did, but you certainly didn't give that impression. I felt the
answer was pretty clearly spelled out in the docs and assumed you never
bothered. Again I apologize.
Jul 21 '05 #6
ed
Daniel,
thank you.

And I appologize for any miscommunications on my part.

sincerely,
ed

"Daniel O'Connell [C# MVP]" wrote:

"ed" <ed@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
Daniel,
while I do appreciate the answer in your second paragraph, there is no
need
for the beginning of your first. I may be new to .Net, however I am far
from
new to programming (and general technology) and prefer to read as much
documentation as I can before posting on the various development
newsgroups.
This comes from the experience of answering countless tech support
questions,
many of which would have not occurred had the other party read the
instructions. However, I felt it best to withhold my frustrations and
simply
provide the answer to the best of my ability.


I apologize for mis-interpreting your post. Sadly most people do not read
the docs and expect complex, complete answers and explinations of simple
items, many times ones that really are common konwledge. It gets old and
sometimes the temper flares up. Its unfortunate that you happened to be
someone who did read the docs and simply wrote a message that implied to me
that you didn't.
All that aside, It seems that you didn't even bother to actually *think*
that maybe I did read the documentation and simply wasn't understanding it
to
my own satisfaction.


Of course I did, but you certainly didn't give that impression. I felt the
answer was pretty clearly spelled out in the docs and assumed you never
bothered. Again I apologize.

Jul 21 '05 #7

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

Similar topics

0
by: Stephan Steiner | last post by:
Hi The project I'm currently working on involves sending large UDP broadcasts. As the .NET framework already provides an easy facility for sending and receiving UDP packets I thought it was a...
0
by: Yage | last post by:
Hi, im developing a small app in compact framework. This app sends Udp broadcasts to 0.0.0.0 (this is needed because the machine can be in multiple subnets and broadcasts need to be sent to each...
3
by: Ryan Learns Sharp | last post by:
Can anybody help and explain why? I wrote two programs just to test broadcasting in C#, which both run on the same machine. However, the receiver program can't receive any messages from the sender...
1
by: Steve | last post by:
Please take a look at the simple code segment below and advise me what is wrong. According to the help and examples I've seen it should work unless I misunderstand something. The problem is...
6
by: pekspro | last post by:
I need some code that gets the address from a server. I read somewhere that you could do this by starting some broadcast server using UDP. The client should send an broadcast message, and when the...
8
by: Frank Esser | last post by:
Hello! I have got machines that answer a certain UDP broadcast request with certain information about them. Some years ago I wrote a VB6 application that just sent out this UDP broadcast...
6
by: ed | last post by:
What is the difference between IPAddress::Any and IPAddress::Broadcast when being using by a TCPListener class?
7
by: GTi | last post by:
I need a code snippet for sending a message to all computers located on the same IP subnet. This is only a simple message like; "Here I am" I'm developing a server/client application. Instead of...
1
by: greenxiar | last post by:
My code is below and the platform is Win2K3 R2: using System; using System.Net; using System.Net.Sockets; using System.Threading; namespace TechUDPBroadcast { class Program { static void...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.