Here's mod mods to the perl version.

This version doesn't need to know the IP of your empeg or the local host. To make up for not knowing the empeg's IP before you start, it prints the IP that it gets the response from.

Disclaimer: I've never programed for sockets before so while I know the theory, I don't know the implimentation details and found the snippets that I added on the web.... they may be wrong, but seem to work for me.

Bugs: I get the following error:
Use of uninitialized value at /usr/lib/perl5/5.00503/i386-linux/Socket.pm line 298.

Not sure why, maybe someone else can point out the problem.

Still needed: a timer. Have it quit waiting after a few seconds.

Untested: I only have one empeg... does it work as expected with multiple?


Attachments
64371-empegfinder.pl (174 downloads)

_________________________
--The Amigo