The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » Blu-ray Disc Java

Thread: Any success on ServerSocket for PS/3?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 7 - Last Post: May 29, 2008 12:29 PM by: jason30 Threads: [ Previous | Next ]
chihiro_saito

Posts: 161
Any success on ServerSocket for PS/3?
Posted: May 19, 2008 6:53 PM
  Click to reply to this thread Reply

Hi All -

Wondering, has anyone succeeded in getting a plain java.net.ServerSocket up on the PS/3?

I can create it fine, but it doesn't seem to be accepting, or responding to, the incoming request when I open from another machine a socket to the IP address obtained from PS/3's System settings -> System info section. Also, InetAddress.getLocalHost() on PS/3 just returns the loopback address. Firmware v2.35. Outgoing connection has been working...

Thanks,
Chihiro

chihiro_saito

Posts: 161
Re: Any success on ServerSocket for PS/3?
Posted: May 20, 2008 10:14 AM   in response to: chihiro_saito
  Click to reply to this thread Reply

Looks like I was simply missing "accept" SocketPermission from the PRF. A silly oversight partly due to the fact that it worked on the PC players and there was no SecurityException from the code to the log during the run.

Thanks to Joe and Eddie for the hints.

Chihiro

dbreitenfeld

Posts: 85
Re: Any success on ServerSocket for PS/3?
Posted: May 20, 2008 10:40 AM   in response to: chihiro_saito
  Click to reply to this thread Reply

Hi Chihiro,

Glad you were able to get it to work. We've had tremendous amount of success with the networking API with the PS3 especially with our BD Touch API.

Cheers,

Denny B.
-------------------------------------------------------------------------------------------------------------
NetBlender DoStudio Blu-ray Team - DSA - http://dostudio.netblender.com

jason30

Posts: 6
Re: Any success on ServerSocket for PS/3?
Posted: May 24, 2008 11:43 AM   in response to: chihiro_saito
  Click to reply to this thread Reply

Hi,

Would any of you be able to post the PRF file that works? I am having trouble with:
InetAddress addr = InetAddress.getLocalHost(); on the PS3. It just hangs. I set the network connection on in the PS3.

Thank you in advance!

Jason

jason30

Posts: 6
Re: Any success on ServerSocket for PS/3?
Posted: May 24, 2008 4:10 PM   in response to: jason30
  Click to reply to this thread Reply

Hi Chihiro,

Were you able to get it so the PS3 didn't return the loopback address when you call InetAddress.getLocalHost(); ?

Jason

chihiro_saito

Posts: 161
Re: Any success on ServerSocket for PS/3?
Posted: May 25, 2008 2:23 PM   in response to: jason30
  Click to reply to this thread Reply

Hi Jason,

I haven't found a way to get the real IP in Java for PS/3 yet, unfortunately. Our friends at MX confirmed that the same behavior is observed through InetAddress...

As for the PRF example, you can browse the source from the hdcookbook repository.

hdcookbook/trunk/tools/bridgehead/src/BridgeheadXlet/bridgehead/bluray.BridgeheadXlet.perm

Best,
Chihiro

dbreitenfeld

Posts: 85
Re: Any success on ServerSocket for PS/3?
Posted: May 27, 2008 1:11 PM   in response to: chihiro_saito
  Click to reply to this thread Reply

Hi Jason and Chihiro,

It is possible to obtain the IP address on the commercial player. In our BD Touch API we do it and it works great. People with iPhones do not have to type in IP Address or machine names. We currently have a rather long waiting list for the API, however it looks like next week we should be able to send out the SDK to the remaining waiting list. If you are interested in this sign up at http://www.netblender.com The API doesn't show you how we do it but it shows that its do able and gives you a disc image that works with all PS3's, the complete documentation along with a fully functional test application to interact with the disc image from any machine on your network.

Cheers,

Denny B.
-------------------------------------------------------------------------------------------------------------
NetBlender DoStudio Blu-ray Team - DSA - http://dostudio.netblender.com

jason30

Posts: 6
Re: Any success on ServerSocket for PS/3?
Posted: May 29, 2008 12:29 PM   in response to: dbreitenfeld
  Click to reply to this thread Reply

Hi Denny,

Just signed up for the Connect SDK! Looking forward to giving it a try.

Jason




 XML java.net RSS