Menu

Instructions to test on Mac OSX

TK3
2015-07-15
2015-07-22
  • TK3

    TK3 - 2015-07-15

    Trying to test this between two terminal windows on OSX 10.10.2 with uftp 4.7.

    client command: ./uftpd -d

    2015/07/15 19:36:25.805538: UFTP version 4.6.1 Copyright (C) 2001-2015 Dennis A. Bush
    2015/07/15 19:36:25.805718: Loaded 512 bit RSA key with fingerprint 74:DD:29:C5:DA:4E:36:59:B7:5B:F6:F7:BC:CA:B2:64:82:B1:BE:8B
    2015/07/15 19:46:29.652364: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:31.156201: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:32.659636: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:34.161716: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:35.663232: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:37.166875: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:38.670196: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:40.170662: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:41.674511: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:43.176160: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:44.676664: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:46.180084: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:47.684087: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:49.189271: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:50.693043: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:52.197433: [65DD8FDC:0]: Name not in host list
    2015/07/15 19:46:53.701979: [65DD8FDC:0]: Name not in host list

    server command: ./uftp -H 127.0.0.1 filename

    UFTP version 4.6.1 Copyright (C) 2001-2015 Dennis A. Bush
    Starting at Wed Jul 15 19:46:29 2015
    Transfer rate: 1000 Kbps (125 KB/s)
    Wait between packets: 10562 us
    Using private multicast address 230.5.5.7 Group ID: 65DD8FDC
    Initializing group
    Sending ANNOUNCE 1.1
    Sending ANNOUNCE 2.1
    Sending ANNOUNCE 3.1
    Sending ANNOUNCE 4.1
    Sending ANNOUNCE 5.1
    Sending ANNOUNCE 6.1
    Sending ANNOUNCE 7.1
    Sending ANNOUNCE 8.1
    Sending ANNOUNCE 9.1
    Sending ANNOUNCE 10.1
    Sending ANNOUNCE 11.1
    Sending ANNOUNCE 12.1
    Sending ANNOUNCE 13.1
    Sending ANNOUNCE 14.1
    Sending ANNOUNCE 15.1
    Sending ANNOUNCE 16.1
    Sending ANNOUNCE 17.1
    Sending ANNOUNCE 18.1
    Sending ANNOUNCE 19.1
    Sending ANNOUNCE 20.1
    Aboring all clients
    Announce timed out
    uftp: Finishing at Wed Jul 15 19:46:59 2015

    Don't know where to go from here. I'm not familiar with how the system works.

     
  • Dennis Bush

    Dennis Bush - 2015-07-16

    The -H option to uftp specifies the ID of the client(s) that may receive. If given an IP address, it will translate it into an ID, which is your example is 7f000001.

    On the client, if -U is specified that will set the client's ID, otherwise it will choose an ID based on the first non-loopback interface it finds. So if your first IP is 10.0.0.1, your ID will be 0a000001. This doesn't match what the server is sending, so the client doesn't join the session.

    You'll need the server to pass in the client's actual ID in -H, or leave out -H so that any client that gets the announcement will register.

     
  • TK3

    TK3 - 2015-07-21

    Now with client...

    command: ./uftpd -U 0a000001 -d

    2015/07/21 10:54:57.659754: UFTP version 4.6.1 Copyright (C) 2001-2015 Dennis A. Bush
    2015/07/21 10:54:57.659914: Loaded 512 bit RSA key with fingerprint 93:FD:37:94:29:3F:3E:22:B3:06:6B:52:E3:10:3C:67:02:8C:AC:0C
    2015/07/21 10:55:01.848780: [78847174:0]: Received request from 0AFF9D49 at thomass-mbp.lan (10.255.157.73)
    2015/07/21 10:55:01.848823: [78847174:0]: Using private multicast address 230.5.5.29
    2015/07/21 10:55:01.848854: [78847174:0]: Error joining multicast group: Invalid argument
    2015/07/21 10:55:03.347058: [78847174:0]: Received request from 0AFF9D49 at thomass-mbp.lan (10.255.157.73)
    2015/07/21 10:55:03.347071: [78847174:0]: Using private multicast address 230.5.5.29
    2015/07/21 10:55:03.347081: [78847174:0]: Error joining multicast group: Invalid argument
    2015/07/21 10:55:04.848510: [78847174:0]: Received request from 0AFF9D49 at thomass-mbp.lan (10.255.157.73)
    2015/07/21 10:55:04.848536: [78847174:0]: Using private multicast address 230.5.5.29
    2015/07/21 10:55:04.848553: [78847174:0]: Error joining multicast group: Invalid argument

    And server

    command: ./uftp filename

    UFTP version 4.6.1 Copyright (C) 2001-2015 Dennis A. Bush
    Starting at Tue Jul 21 10:55:01 2015
    Transfer rate: 1000 Kbps (125 KB/s)
    Wait between packets: 10562 us
    Using private multicast address 230.5.5.29 Group ID: 78847174
    Initializing group
    Sending ANNOUNCE 1
    Transfer aborted by 0A000001: Error joining multicast group
    Sending ANNOUNCE 2
    Transfer aborted by 0A000001: Error joining multicast group
    Sending ANNOUNCE 3
    Transfer aborted by 0A000001: Error joining multicast group
    Sending ANNOUNCE 4

    This is on same machine. Two different terminal windows. OSX 10.10.2

    Any ideas? Thanks so much for your help!

     
  • Dennis Bush

    Dennis Bush - 2015-07-21

    It might be trying to join a multicast group on an interface that doesn't support it. On both client and server, you can set the interface for multicast traffic using the -I option. This option can take either an IP address or an interface name as given by ifconfig(1).

     
  • TK3

    TK3 - 2015-07-21

    Same issue with slightly different output on client....

    command: uftpd -U 0a000001 -d -I 127.0.0.1

    2015/07/21 19:05:25.060124: UFTP version 4.7 Copyright (C) 2001-2015 Dennis A. Bush
    2015/07/21 19:05:25.060326: Loaded 512 bit RSA key with fingerprint 40:79:3F:6D:27:80:89:83:92:84:B9:5D:A1:C1:07:A6:BC:2C:10:2A
    2015/07/21 19:05:36.040228: [93900900/00:0]: Received request from 7F000001 at localhost (127.0.0.1)
    2015/07/21 19:05:36.040241: [93900900/00:0]: Using private multicast address 230.5.5.189
    2015/07/21 19:05:36.040260: [93900900/00:0]: Error joining multicast group: Invalid argument
    2015/07/21 19:05:37.544640: [93900900/00:0]: Received request from 7F000001 at localhost (127.0.0.1)
    2015/07/21 19:05:37.544658: [93900900/00:0]: Using private multicast address 230.5.5.189
    2015/07/21 19:05:37.544674: [93900900/00:0]: Error joining multicast group: Invalid argument

     
  • Dennis Bush

    Dennis Bush - 2015-07-22

    You can't use the localhost interface for multicast. You have to use an external interface for that. You can however use unicast to send to localhost by passing -M 127.0.0.1 to the server.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.