new AFPClient for iOS/OSX <--SOLUTION FOR LION USERS

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #16
_-Sky-_ Wrote:@canadave : are you sharing something without necessary login/password on your NAS ?

Sorry, I don't understand what exactly you're asking.

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
_-Sky-_ Offline
Junior Member
Posts: 21
Joined: Jun 2011
Reputation: 0
Location: France
Post: #17
canadave Wrote:Sorry, I don't understand what exactly you're asking.
I mean do you have a public sharing, which does not require providing a login and password ?

EDIT : After reading your edit 3, it seems the files you shared require providing a username/password to be accessed.
But the matter of password protected shares using Zeroconf seems to be there...
(This post was last modified: 2011-09-09 15:17 by _-Sky-_.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,649
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #18
_-Sky-_ Wrote:This behavior is on "Lion compatible" sharing (OS Lion, recently upgraded NAS) only or with every kind of share ?

Yeah this issue is on all AFP shares.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,649
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #19
canadave Wrote:OK, it sort of works for me. It's something on my side, with my NAS, that's not working; it works fine on my Mac Pro and my laptop.

http://pastebin.com/a5pKAPKh

It looks to me like it's trying to connect to port 548 on my NAS...not sure if my Synology is listening on port 548 for AFP?

I'll do some more investigating.

*** EDIT ***: the Synology DOES use port 548 for AFP. And it is enabled (have been using it for my own computer LAN connections to the NAS for some time now). But not working in this case with the ATV2. That's strange....hmmmm.........

*** EDIT 2 ***: Duhhrrr...let me try davilla's manual connect and see if that's the issue. I bet it is.

*** EDIT 3 ***: Yep, it works when I manually type in the username : password@IP/sharedfolder to access the share rather than browsing. It's too bad it doesn't "just work", but, oh well Smile It works, bottom line! I'm playing TRON:Legacy 1080p .mkv file from my NAS to the ATV2 via wireless LAN, working great, no buffering/stuttering.

Yeah i don't know how to fix. It tries to cconect with out username/pass when using zeroconf - and the lib doesn't return a "auth required" or something like that. So this ZeroConf only works if you share public (without username and password).

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #20
Memphiz Wrote:Yeah i don't know how to fix. It tries to cconect with out username/pass when using zeroconf - and the lib doesn't return a "auth required" or something like that. So this ZeroConf only works if you share public (without username and password).

Fair enough.

Do you, Memphiz, or anyone else, offhand know...which is the more efficient network transport protocol in general, in terms of overhead etc...AFP or NFS?

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
_-Sky-_ Offline
Junior Member
Posts: 21
Joined: Jun 2011
Reputation: 0
Location: France
Post: #21
Memphiz Wrote:Yeah i don't know how to fix. It tries to cconect with out username/pass when using zeroconf - and the lib doesn't return a "auth required" or something like that. So this ZeroConf only works if you share public (without username and password).
I'm not sure if it can help, but the lib provides, for each share, flags telling, among other things, if the share is password protected
(This post was last modified: 2011-09-09 16:21 by _-Sky-_.)
find quote
_-Sky-_ Offline
Junior Member
Posts: 21
Joined: Jun 2011
Reputation: 0
Location: France
Post: #22
canadave Wrote:Fair enough.

Do you, Memphiz, or anyone else, offhand know...which is the more efficient network transport protocol in general, in terms of overhead etc...AFP or NFS?
I didn't make the tests myself, but I read that AFP is faster and uses less CPU when using OSX machine as server.

I simply tend to think that each protocol is the best in its native environment (SMB for Windows, AFP for OSX and NFS for Linux/UNIX/BSD)
find quote
turbinez Offline
Fan
Posts: 327
Joined: Sep 2008
Reputation: 0
Post: #23
I have my media stored on my OS X 10.5.8 G5 PPC machine using SMB at the moment, would it benefit me from switching over to AFP instead? I mean will things be faster and smoother when it comes to streaming?
find quote
_-Sky-_ Offline
Junior Member
Posts: 21
Joined: Jun 2011
Reputation: 0
Location: France
Post: #24
turbinez Wrote:I have my media stored on my OS X 10.5.8 G5 PPC machine using SMB at the moment, would it benefit me from switching over to AFP instead? I mean will things be faster and smoother when it comes to streaming?
Do you have streaming issues currently ?
find quote
turbinez Offline
Fan
Posts: 327
Joined: Sep 2008
Reputation: 0
Post: #25
Sky, yes I am having stuttering or buffering issues. Seems to be happen randomly and I'm on a wired ethernet connection. Doesn't happen all the time though.
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #26
turbinez Wrote:I have my media stored on my OS X 10.5.8 G5 PPC machine using SMB at the moment, would it benefit me from switching over to AFP instead? I mean will things be faster and smoother when it comes to streaming?
There's an easy way to find out Wink

it just occurred to me that some folks might be reluctant to "change" their setup. Remember, you don't need to change anything with your existing setup; you can just add another source, make it AFP, point it to your existing shared folder, and see how it works, without messing around at all with your existing source. Takes two secs to try Smile

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
turbinez Offline
Fan
Posts: 327
Joined: Sep 2008
Reputation: 0
Post: #27
canadave, ahh awesome, saves me a ton of trouble! I can just toggle between the different sources and see which works better. Smile Thanks!
find quote
_-Sky-_ Offline
Junior Member
Posts: 21
Joined: Jun 2011
Reputation: 0
Location: France
Post: #28
turbinez Wrote:Sky, yes I am having stuttering or buffering issues. Seems to be happen randomly and I'm on a wired ethernet connection. Doesn't happen all the time though.
You can try AFP, but don't forget your problem is not necessarily a network protocol issue. It can be a lot of other things : slow network, too heavy file, slow cpu, etc...

For exemple, I'm not sur a G5 PPC (which is what you have) will handle smoothly 1080p HD videos in H264 or VC1...
find quote
pecinko Offline
Donor
Posts: 3,724
Joined: Dec 2008
Reputation: 51
Location: Prague / Belgrade
Post: #29
Just tried it on mini. Zeroconfig does not ask for user/paswd but works like a charm with manually added network location. Thanks!

My skins:

Amber
Quartz

find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,885
Joined: Jan 2011
Reputation: 247
Location: Arizona, USA
Post: #30
_-Sky-_ Wrote:I didn't make the tests myself, but I read that AFP is faster and uses less CPU when using OSX machine as server.

I simply tend to think that each protocol is the best in its native environment (SMB for Windows, AFP for OSX and NFS for Linux/UNIX/BSD)

NFS is native on OS X, and Lion includes improved support. It just doesn't have a nice GUI to set things up with.
find quote
Post Reply