in reply to Re^2: Bind error in script using IO:Socket
in thread Bind error in script using IO:Socket

...I don't believe familysearch.org has changed much...

It has nothing to do with familysearch.org. The program is trying to listen on $myHostIP, but $myHostIP doesn't belong to your machine (like you reported, it belongs to your router).

10049 WSAEADDRNOTAVAIL

Cannot assign requested address. The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local machine. This can also result from connect (Windows Sockets), sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote machine (for example, address or port 0).

After looking at the program, it does a bind() for no reason, so you can just delete that line.

Actually, I would throw the program away and rewrite it using LWP::Simple, Gedcom, Getopt::Long.

  • Comment on Re^3: Bind error in script using IO:Socket

Replies are listed 'Best First'.
Re^4: Bind error in script using IO:Socket
by Mazinga (Initiate) on Sep 25, 2009 at 17:24 UTC
    Thank you, I will try that out. I'm a user, and not a programmer, so perhaps I can get this one to work. I will check out those modules and see if I can understand how to script with them. Thank you, --M