PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > UDP broadcast does not work to loopback device without network connection?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

UDP broadcast does not work to loopback device without network connection?

Réponse
 
LinkBack Outils de la discussion
Vieux 14/03/2006, 09h27   #1
franklin.bowen@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut UDP broadcast does not work to loopback device without network connection?

While developing some Java tools that use UDP broadcasting, I found
that my laptop will not broadcast packets back to the loopback device
*IF* I do not have a network connection (IP address assigned to one of
my interfaces) even if i turn on broadcasting and share ports. Does
anyone know if this is expected (or maybe undefined?) behaviour in
networking in general, a Java specific issue, a bug, or some other
option I have not listed?

Thanks!

  Réponse avec citation
Vieux 14/03/2006, 17h20   #2
Phil Frisbie, Jr.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UDP broadcast does not work to loopback device without networkconnection?

franklin.bowen@gmail.com wrote:
> While developing some Java tools that use UDP broadcasting, I found
> that my laptop will not broadcast packets back to the loopback device
> *IF* I do not have a network connection (IP address assigned to one of
> my interfaces) even if i turn on broadcasting and share ports. Does
> anyone know if this is expected (or maybe undefined?) behaviour in
> networking in general, a Java specific issue, a bug, or some other
> option I have not listed?


I assume this is a Windows 2000 or XP system? If so, this is a very common
problem, and you can easily find the fix if you search for "disable windows
media sense" on your favorite search site. Media sense was another 'ful'
Microsoft idea....

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
  Réponse avec citation
Vieux 15/03/2006, 17h07   #3
franklin.bowen@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UDP broadcast does not work to loopback device without network connection?

Yes, the system is running XP. Thanks for the information. I got
"around" the problem by installing an ethernet PC card (USB would
probably work just as well) and plugging an ethernet cable between the
two NICs.

They auto-configured to different subnets (169.254.87.x and
169.254.104.x) but I just set the last two octets in my IPv4 broadcast
address to 0xFF and I can now continue my development work. Yay!

Thanks again for the useful reply! I appreciate it.

  Réponse avec citation
Vieux 15/03/2006, 20h20   #4
googlegroups@marget.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UDP broadcast does not work to loopback device without network connection?

franklin.bowen@gmail.com wrote:
> Yes, the system is running XP. Thanks for the information. I got
> "around" the problem by installing an ethernet PC card (USB would
> probably work just as well) and plugging an ethernet cable between the
> two NICs.
>
> They auto-configured to different subnets (169.254.87.x and
> 169.254.104.x) but I just set the last two octets in my IPv4 broadcast
> address to 0xFF and I can now continue my development work. Yay!


I bet you'll find they're not in different subnets afterall. The mask
on those addresses should be a /16. You might want to put something
into your code so that it automagically figures out the correct
broadcast address to use.

I've had to do similar nonsense with my PowerBook: For some reason the
perl pcap libraries refuse to read from a capture file if my NIC
doesn't have a link. It makes no sense, but I haven't got to the
bottom of it yet. My workaround is to carry a PCMCIA ethernet card
(for which I don't even have drivers) and string that NIC over to my
onboard Ethernet.

Frustratingly, an Ethernet loopback plug like this one doesn't seem to
do the trick:

http://docs.sun.com/app/docs/doc/816...82opb3g?a=view

Maybe loopback plugs cannot work in a transceiver that supports
auto-crossover?

/chris

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h07.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10378 seconds with 12 queries