networking - Proper way to publish and find services on a LAN using Python -


my app opens tcp socket , waits data other users on network using same application. @ same time, can broadcast data specified host on network.

currently, need manually enter ip of destination host able send data. want able find list of hosts running application , have user pick host broadcast data to.

is bonjour/zeroconf right route go accomplish this? (i'd cross-platform osx/win/*nix)

it can broadcast data specified host on network

this non-sequitur.

i'm presuming don't mean broadcast, mean unicast or "send"?

is bonjour/zeroconf right route go accomplish this?

this depends on target environment , application intended do.

as ignacio points out, need install apple software on windows zeroconf/mdns work @ moment.

this might suitable small office / home use.


however larger networks may have layer 2 multicast disabled variety of reasons, @ point app might in trouble.

if want work in enterprise environment, configuration required, doesn't have done @ edge (in app client instances).

could via dhcp option, or dns service records.. in these cases you'd possibly writing queryable server track active clients.. bittorrent tracker.

two things consider while designing networked app:

  • would there ever reason run more 1 "installation" of application on network?
  • always consider implications of versioning: 1 client more date another, can still talk each other or @ least fail gracefully?

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -