Can't connect my subsonic server from work

Need help? Post your questions here.

Moderator: moderators

Can't connect my subsonic server from work

Postby darastacat » Tue Sep 28, 2010 6:45 pm

Hello,

I've tried some research but can't manage to get any interesting result, please excuse me if this issue has already been adressed.

I've successfully installed a subsonic server on my mac (10.5.8) yesterday, and had it tested by some remote friends during the night, without any problems.

This soft seemed great for a particular reason : I've always wanted to be able to listen to my music from my work computer.

But it seems that the security rules of my company don't allow me to access the subsonic server.
I can access the subsonic server from my iPhone so I know it's working fine but seems unfoundable from the desk computer in the office.

I guess port 4040 consultation must be blocked at work, and I wanted to open the subsonic server on port 80 but I'm unsure of how to do that.

In the "getting started" section is written
"Open the Subsonic Control Panel by clicking on the Subsonic tray icon. Change the port number to any random number between 1025 and 65,000."

English isn't my natural language and I can't manage to find such "subsonic control panel" where the port number can be changed... I may be blind or stupid...


So the question is
(i) have any one already experienced this issue, and is the solution I'm trying to experience (changing subsonic port to 80) a good one ?
(ii) where is that damn option to change the port of the server !!

Thank you for any advice.

Yours faithfully,
Darastacat
darastacat
 
Posts: 4
Joined: Tue Sep 28, 2010 6:37 pm

Re: Can't connect my subsonic server from work

Postby Kirk » Tue Sep 28, 2010 9:14 pm

darastacat wrote:This soft seemed great for a particular reason : I've always wanted to be able to listen to my music from my work computer.

I'm with you there! I love Subsonic because I only have to maintain a single music collection. It's awesome.

darastacat wrote:But it seems that the security rules of my company don't allow me to access the subsonic server.
I can access the subsonic server from my iPhone so I know it's working fine but seems unfoundable from the desk computer in the office.

Do you get a specific error message that you can explain to us, or is it just "Page Cannot Be Displayed"? Do you know what kind of content filtering is used at your work (eg. Websense, CIPAfilter, SonicWALL)?

darastacat wrote:I guess port 4040 consultation must be blocked at work, and I wanted to open the subsonic server on port 80 but I'm unsure of how to do that.

It's quite possible that 4040 is blocked, since it's not usually used for web services or any service that I know of. Port 80 may be a good choice since it's unlikely that your IP of your home computer would be blocked and we know port 80 isn't blocked because you can access the Internet.

Changing to port 80 might have a downside. Some Internet providers block port 80 incoming, to prevent you from running servers from home. If your provider does this, 81 or 8080 are your next best choices.

darastacat wrote:In the "getting started" section is written
"Open the Subsonic Control Panel by clicking on the Subsonic tray icon. Change the port number to any random number between 1025 and 65,000."

English isn't my natural language and I can't manage to find such "subsonic control panel" where the port number can be changed... I may be blind or stupid...

The Subsonic control panel is only on Windows. On linux\mac the port setting is in a configuration file. I don't have a Mac, so I don't know for sure. But I can tell you that on Ubuntu Linux, the configuration file is in /var/subsonic/subsonic.properties

You could try searching for a file called "subsonic.properties" on your computer. Then if you find it, find the line where it says "Port=4040" and change that to "Port=80". Make sure you restart Subsonic and update any firewall rules before testing.

If you have any further questions or require additional assistance, please feel free to reply to this thread.

Cheers,
Kirk
Image
User avatar
Kirk
 
Posts: 310
Joined: Tue Jun 08, 2010 5:45 pm
Location: Illinois, USA

Postby darastacat » Wed Sep 29, 2010 8:00 am

Hello Kirk,

Thank you for answering (and for all the support that you provide, as seen through the different threads I've explored so far...)

Do you get a specific error message that you can explain to us, or is it just "Page Cannot Be Displayed"? Do you know what kind of content filtering is used at your work (eg. Websense, CIPAfilter, SonicWALL)?


I just have an "unable to open the page" error (Safari can't open the page located at " http://[myipadress] " because the server on which this page is located doesn't answer.

Sadly, I don't know what kind of filtering is used, but we're not a big company and I've never seen any restriction on any of the webservices I used before. I'll try to gather information if I can see the tech person one of these days, but I'm unsure he can spread this information.

I've tried to define a rule on muy router which would allow incoming port 80 requests to be forwarded to port 4040 on my computer, but I'm not sure that (i) this is possible and (ii) this is well done on my router config.
In any case, it's not working today.


Changing to port 80 might have a downside. Some Internet providers block port 80 incoming, to prevent you from running servers from home. If your provider does this, 81 or 8080 are your next best choices.


I can check that with my friends when I'm at home. But i can't check wether the changes I make at home are efficient at work since... I'm can't seperate myself in two. I'll give it a try with the modification of the "properties" file as kindly described in your message.

Thank you for this kind assistance, I'll keep you informed of any evolution of the matter.
darastacat
 
Posts: 4
Joined: Tue Sep 28, 2010 6:37 pm

Postby darastacat » Thu Sep 30, 2010 12:29 am

Hello,

Tried tonight to change the port defined as explained in your message.

I located the subsonic.properties file and modified the "port=4040" to "port=80" and updated router rules, reloaded the subsonic app.

When trying to connect to http://$$.subsonic.org, I'm redirected to http://192.168.1.102:80/, and my brower fails to find a responding server. But with the same configuration, when I try to connect to http://192.168.1.102:4040, I happen to reach the server !

So... I wondered if modifying the subsonic.properties files really changes anything about the port on which the subsonic server opens itslef !

Another file named "Info.plist" contained in the subsonic app package allows to modify the connection port, and when I modify this file, the connection to the subsonic server is impossible, ressource can't be located.

I also tried with another port that I noticed as open at my work (443), but still, I can't manage to access the subsonic server on that port.
I think my router rules have been updated (and subsonic relaunched) properly each time, since I copied the UPnP rule opened by Subsonic on port 4040.

Something doesn't seem to work, maybe there is another file that needs to be modified...

So well I'm stuck at this point.
Any idea would be greatly appreciated to solve this outstanding issue ;)
darastacat
 
Posts: 4
Joined: Tue Sep 28, 2010 6:37 pm

Postby Thrais » Thu Sep 30, 2010 2:01 pm

Just curious if you are using Wifi at work?

The day after I've installed it on my Windows Home Server, I successfully tested it with friends logging in remotely. I got to work and had the same problem using my laptop.

A while later I tried going on from a wired workstation and to my surprise it worked. I ended up calling the IT department to ask about the WiFi and it turns out they block access to limit bandwidth :| and there was no work-around it... :(
Thrais
 
Posts: 1
Joined: Thu Sep 30, 2010 1:50 pm

Postby bormuff » Thu Sep 30, 2010 9:00 pm

darastacat wrote:Hello,

Tried tonight to change the port defined as explained in your message.

I located the subsonic.properties file and modified the "port=4040" to "port=80" and updated router rules, reloaded the subsonic app.

When trying to connect to http://$$.subsonic.org, I'm redirected to http://192.168.1.102:80/, and my brower fails to find a responding server. But with the same configuration, when I try to connect to http://192.168.1.102:4040, I happen to reach the server !

So... I wondered if modifying the subsonic.properties files really changes anything about the port on which the subsonic server opens itslef !

I don't think that you want to be modifying the subsonic.properties file by hand as that will get re-written by Subsonic when you update settings from the web interface.

I'm unsure how you'd specifically do all this on a Mac but on Ubuntu, the startup parameters are defined in /etc/default/subsonic; on mine this has:
Code: Select all
SUBSONIC_ARGS="--host=<IPADDR> --port=8181 --max-memory=100 --default-music-folder=/multimedia/music --default-podcast-folder=/multimedia/podcasts --default-playlist-folder=/multimedia/playlists"

This file is called from the startup script in /etc/init.d/subsonic which pulls in $SUBSONIC_ARGS and then runs /usr/share/subsonic/subsonic.sh which actually does the starting-up.

Hopefully that gives you some things try.
bormuff
 
Posts: 32
Joined: Fri Apr 17, 2009 5:14 pm

Postby darastacat » Thu Sep 30, 2010 11:48 pm

Thrais wrote:Just curious if you are using Wifi at work?


Yes I am. I will try to connect with a computer with a wire LAN access tomorow, if there are still some in the company... Just to check.

bormuff wrote:I don't think that you want to be modifying the subsonic.properties file by hand as that will get re-written by Subsonic when you update settings from the web interface.


Well anyway I'm unsure if this file would be re-written since I can't access the subsonic server when I change the port number on the "Info.plist" file..

I can't find any of the files you're describing me on my mac app, on in the subsonic librabry files.

Here's an extract of the "Info.plist" file so that you shall see what it looks like :

Code: Select all
<dict>
        <key>subsonic.port</key>
        <string>4040</string>
        <key>subsonic.war</key>
        <string>Subsonic.app/Contents/Resources/subsonic.war</string>
        <key>subsonic.defaultPodcastFolder</key>
        <string>/Users/Shared/Podcasts</string>
        <key>subsonic.contextPath</key>
        <string>/</string>
        <key>subsonic.defaultMusicFolder</key>
        <string>/Users/Shared/Music/iTunes/iTunes Media</string>
        <key>subsonic.home</key>
        <string>/Library/Application Support/Subsonic</string>
        <key>subsonic.defaultPlaylistFolder</key>
        <string>/Users/Shared/Playlists</string>
      </dict>


Anyway thank you for trying to solve this matter, I really appreciate to have your feedback.
darastacat
 
Posts: 4
Joined: Tue Sep 28, 2010 6:37 pm

Postby bormuff » Fri Oct 01, 2010 6:30 am

So you should probably have a look at the info at http://www.subsonic.org/pages/installation.jsp#mac and specifically:

To change the port number, Java memory settings or other startup parameters, edit /Application/Subsonic.app/Contents/Info.plist.

[...]

If Subsonic doesn't start properly you can troubleshoot it by starting it from the command line: /Applications/Subsonic.app/Contents/MacOS/JavaApplicationStub.

Also check the logs in /Library/Application Support/Subsonic.
bormuff
 
Posts: 32
Joined: Fri Apr 17, 2009 5:14 pm

Can't find plist file

Postby jaymacke » Wed Oct 13, 2010 12:30 pm

Perhaps I'm just dense, but I can't locate a plist file for subsonic. I'm trying to increase the amount of memory allocated to the server, since it craps out about once a day and I end up firing up VNC to reboot the server remotely.

I'm running the latest version of subsonic, on a mac mini core 2 duo with 3 GB RAM, on OS X 10.6.4. Any thoughts? Thanks in advance.
jaymacke
 
Posts: 4
Joined: Wed Oct 13, 2010 12:26 pm

Postby Aethies » Wed Oct 13, 2010 6:47 pm

darastacat wrote:Hello,

Tried tonight to change the port defined as explained in your message.

I located the subsonic.properties file and modified the "port=4040" to "port=80" and updated router rules, reloaded the subsonic app.

When trying to connect to http://$$.subsonic.org, I'm redirected to http://192.168.1.102:80/, and my brower fails to find a responding server. But with the same configuration, when I try to connect to http://192.168.1.102:4040, I happen to reach the server !

So... I wondered if modifying the subsonic.properties files really changes anything about the port on which the subsonic server opens itslef !

Another file named "Info.plist" contained in the subsonic app package allows to modify the connection port, and when I modify this file, the connection to the subsonic server is impossible, ressource can't be located.

I also tried with another port that I noticed as open at my work (443), but still, I can't manage to access the subsonic server on that port.
I think my router rules have been updated (and subsonic relaunched) properly each time, since I copied the UPnP rule opened by Subsonic on port 4040.

Something doesn't seem to work, maybe there is another file that needs to be modified...

So well I'm stuck at this point.
Any idea would be greatly appreciated to solve this outstanding issue ;)


I quickly scanned the replies, but did you use the format -- http://ip:port/subsonic
?
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

Postby Kirk » Wed Oct 13, 2010 10:56 pm

Not /subsonic/.

ip:port

Cheers,
Kirk
Image
User avatar
Kirk
 
Posts: 310
Joined: Tue Jun 08, 2010 5:45 pm
Location: Illinois, USA

Hrm

Postby Aethies » Thu Oct 14, 2010 6:47 pm

Kirk wrote:Not /subsonic/.

ip:port

Cheers,
Kirk


That is how I have been accessing my server since day one....

Edited:
Meaning, the /subsonic on the end....
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests