Le 8 mai 2018 �� 08:28, Henrik Sperre Johansen <henrik.s.johansen@veloxit.no> a ��crit :

HilaireFernandes wrote
Computer should be on a same network, however not sure about swtich in
between.

Does UDP broadcast required particular privilege on the host?

Thanks

Hilaire

Le 06/05/2018 �� 13:31, Norbert Hartl a ��crit��:
If it is on a single network this should be doable by using UDP broadcast
announcements. The share server can announce some information and its IP
in a UDP packet being broadcasted. Every client receives that and then
knows the address of the server to connect to

--
Dr. Geo
http://drgeo.eu

No, but it does involve setting certain options on the socket, etc.
You could check if http://smalltalkhub.com/#!/~henriksp/SSDP is
appropriate/works for you.

Cheers,
Henry



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



On 8 May 2018 at 15:32, C��drick B��ler��<cdrick65@gmail.com>��wrote:
Hi, FYI, Noury did this package (Network-Extra). I will test for my lecture. It has UDP Multicast/broadcast and may help for the discovery phase (I���m interested in that either).

He said that about it:

-��UDP support : mutlicast + broadcast
- fragment a (large) data et assemble it over UDP
-la possibilit�� de fragmenter une donn��e trop grande et la reconstruire au-dessus d'UDP

Gofer it
smalltalkhubUser: 'CAR' project: 'ReusableBricks';
configurationOf: 'ReusableBricks';
loadBleedingEdge

Hope this help,

See you,

C��drick

Ps: tell me if you use it.��


If we've got multicast support for Pharo, perhaps its not a long jump to implementing mDNS.
Then the teacher could share out their machine as "teacher.local"
to let student machines connect to it.

https://www.trustwave.com/Resources/SpiderLabs-Blog/mDNS---Telling-the-world-about-you-(and-your-device)/

https://tools.ietf.org/html/rfc6762
The most basic kind of Multicast DNS client may simply send standard
�� ��DNS queries blindly to 224.0.0.251:5353, without necessarily even
�� ��being aware of what a multicast address is.�� This change can
�� ��typically be implemented with just a few lines of code in an existing
�� ��DNS resolver library.


@Udo, did you ever find that mDNS package you lost?


mDNS would be an interesting facility to include in the main Pharo release image,
perhaps making it very easy for our "live" systems to locate each other on a local network without external infrastructure.


cheers -ben