Page 1 of 1

Trouble w/network settings

PostPosted: Sun May 15, 2011 11:30 pm
by Mike C.
I have Subsonic running on my Mac Mini...works great at home on my LAN. However, I can't access it outside my home.

On the Settings --> Network menu, I have these two options set:

1) Automatically configure your router to allow incoming connections to Subsonic (using UPnP or NAT-PMP port forwarding).

Status: Successfully forwarding port 4040.

I've configured my router to allow ports 80 and 4040, as specified at portforward.com.

2) Access your server over the Internet using an easy-to-remember address.

Status: ________.subsonic.org is registered, but could not connect to it. (HttpHostConnectException)

There's a weird error in the logfile -see below.

When I was running the 3.x version, several months ago, all the networking stuff worked correctly. I wonder if something in the current version I'm running (4.4 (build 2169) – February 6, 2011) is screwy...

Thanks in advance for any help!

----------------------------

[2011-05-15 16:29:47,809] WARN NetworkService - Failed to find UPnP router using WeUPnP library.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.wetorrent.upnp.GatewayDiscover.parseMSearchReplay(GatewayDiscover.java:175)
at org.wetorrent.upnp.GatewayDiscover.discover(GatewayDiscover.java:130)
at net.sourceforge.subsonic.domain.WeUPnPRouter.findRouter(WeUPnPRouter.java:39)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.findRouter(NetworkService.java:197)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.execute(NetworkService.java:132)
at net.sourceforge.subsonic.service.NetworkService$Task.run(NetworkService.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

[2011-05-15 16:29:48,122] INFO NetworkService - Successfully forwarding port 4040.

PostPosted: Tue May 24, 2011 4:49 am
by Mike C.
Nevermind, I fixed it. Turns out I was using the wrong port, and hadn't setup forwarding for that particular port on my router :roll:

PostPosted: Tue May 24, 2011 8:16 am
by 3R3
Just to highlight what has happened and can be done for others:
Code: Select all
[2011-05-15 16:29:47,809] WARN NetworkService - [b]Failed to find UPnP router using WeUPnP library.[/b]
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.wetorrent.upnp.GatewayDiscover.parseMSearchReplay(GatewayDiscover.java:175)
at org.wetorrent.upnp.GatewayDiscover.discover(GatewayDiscover.java:130)
at net.sourceforge.subsonic.domain.WeUPnPRouter.findRouter(WeUPnPRouter.java:39)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.findRouter(NetworkService.java:197)


I recommend turning UPnP off and setting the port by hand in SS and your router, as it is flakey and has produced much grief when you look through the forums and network error related threads.