Serving Subsonic via port 80 under Mac OS X

Need help? Post your questions here.

Moderator: moderators

Serving Subsonic via port 80 under Mac OS X

Postby p4madeus » Thu Jul 15, 2010 4:15 am

I currently have Subsonic set up and running on my PowerMac G5 quad (running 10.5 w/ latest patches) through the default port of 4040....everything works fine I access it from my Moto Droid with the Android app and from friend's computers no problem. My issue is my work computer, it is behind a company firewall which seems to be blocking all nonstandard ports 4040 included, so I am unable to use it. This was the main reason I set this up to begin with... to listen to my music at work.

I'm looking for information on how to get Subsonic set up through port 80, the normal http port. I tried editing the info.plist file inside Subsonic.app to change the port to 80 however when I open the application after doing this I get an error that access was denied. I am not running a web server off this computer, "Web Sharing" is turned off in System Preferences, however I suspect apache is still somehow interfering with it. How do I get Subsonic to go live via port 80 from my Mac?
p4madeus
 
Posts: 8
Joined: Thu Jul 15, 2010 4:02 am

Postby Sporkman » Sun Jul 18, 2010 9:14 pm

In Ubuntu there's a config file:

/etc/default/subsonic

In which you can specify the port, etc:

SUBSONIC_ARGS="--port=80 --max-memory=100"

for example. I don't know where the equivalent config file resides for you system, perhaps search for the string "SUBSONIC_ARGS"...
Sporkman
 
Posts: 18
Joined: Wed Mar 17, 2010 1:33 am
Location: The Internet

Postby p4madeus » Tue Jul 20, 2010 1:11 pm

Thanks for the reply, that's what I did, there's a file inside the Subsonic.app package I modified to change the port number, but when i set it to 80 (or any port < 1024) it says permission denied in the Subsonic app window when i re-open it.

Is there some way to integrate Subsonic into the Apache server that comes with Mac OS X so when i turn on Web Sharing Subsonic is my web page?
p4madeus
 
Posts: 8
Joined: Thu Jul 15, 2010 4:02 am

Postby jrh.koenig » Tue Jul 20, 2010 6:12 pm

MacOS X is a Unix. In Unix only User root can open ports below 1024. So you can start your subsonic with the sudo command.

sudo /Applications/Subsonic.app/Contents/MacOS/JavaApplicationStub

Then will Subsonic run as User root instead as with your userid. But it risky to do that. Its may open a possibility to attack your computer.

A better solution is when you are forwarding request to port 80 to the subsonic port 4040 or 8080 by your firewall. Do you have a router with firewall option at home or do you connect directly with your MacOS to the Internet?

Regards

Johannes
jrh.koenig
 
Posts: 18
Joined: Sat Feb 27, 2010 3:51 pm
Location: Frankfurt, Germany

Postby p4madeus » Sat Jul 24, 2010 2:54 am

I have tried running subsonic as the root user however I still receive the same error. I connect through a router, however I'm not sure how I would make a request to port 80 coming in go to 4040 on my Mac? I've thought of this but have not been able to find a way to do this either.
p4madeus
 
Posts: 8
Joined: Thu Jul 15, 2010 4:02 am


Return to Help

Who is online

Users browsing this forum: No registered users and 41 guests