Is local access only possible

Need help? Post your questions here.

Moderator: moderators

Is local access only possible

Postby vermaat » Sun Jan 30, 2011 1:48 pm

I would like to access my server from my Android phone using WiFi only. I've set up the server and installed the client software on the phone, but don't seem to be able to make a connection direct from the phone to the server. Is it possible, or must I create an internet connection? My server is behind a firewall and has a local static IP address.
vermaat
 
Posts: 2
Joined: Sun Jan 30, 2011 12:24 pm

Postby Minime » Sun Jan 30, 2011 6:13 pm

You should be able to access your server from your lan by typing: http://192.168.1.X:XXXX (x being ip address of your SS server and xxxx being the port number).
Best Regards
Minime,
-----------------------------------------------------------------
Subsonic 4.6 | Ubuntu 10.04 LTS inside a VMWare host
Galaxy SII with ICS 4.0.1 & Android App v3.0 Combo
XBMC Dharma with t0mm0-xbmc-addons
+ A few custom Mods
User avatar
Minime
 
Posts: 68
Joined: Fri Dec 17, 2010 5:19 am
Location: UK

Postby vermaat » Sun Jan 30, 2011 7:13 pm

Brilliant, thanks - that worked. I'd left our the port number when I tried.
vermaat
 
Posts: 2
Joined: Sun Jan 30, 2011 12:24 pm

Postby Poxican » Thu May 05, 2011 8:17 am


[edit] Think I sorted it! I tried it by just putting http://myip:port into the server address on the client and its certainly streaming. Does that mean it's coming direct over WIFI and bypassing the internet?

I'm having a bit of trouble with this too... I've done a search of the forum but haven't found the solution so thought I'd ask here...

I want to be able to stream in my house straight over wifi, without going via the internet, but I can't get it to work.

I tried entering the http://192.168.1.x:xxxx into the server address in my Android client, entered the usename and password but when i click test connection it says "Connection failure. Host name may not be null"

Can anyone point me in the right direction here?

[edit] I should clarify, that in the address above, for the x I put my IP from whatismyip.com. Is that what I'm meant to enter there?
Poxican
 
Posts: 2
Joined: Thu May 05, 2011 8:12 am

Postby GJ51 » Thu May 05, 2011 1:13 pm

You need to use the internal IP address that your router issues to the computer that hosts SS. Typically 192.168.1.xxx the last section can be 1,2,or 3 digits depending on the address assigned by the router. If you open the router's admin page, you should be able to find routing tables that list the computers on your network and the assigned IP addresses. Then in the Android app you put in: 192.168.1.X:port#

Internally, my SS address is 192.168.252:8084 as I manually configured the address to occupy the higher end of the address range and manually assigned the port number. If you just used default settings, your numbers may look a bit different. Some routers may use slight variations, such as 192.168.0.X and SS usually assigns 4040 as the default port number.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby Poxican » Sat May 07, 2011 1:41 pm

Ahhh brilliant, that's it working now. Thanks very much GJ51.

What was happening before then when I just put my IP address in there? Was it still connecting via the internet?
Poxican
 
Posts: 2
Joined: Thu May 05, 2011 8:12 am

Postby GJ51 » Sat May 07, 2011 3:40 pm

Poxican wrote:Ahhh brilliant, that's it working now. Thanks very much GJ51.

What was happening before then when I just put my IP address in there? Was it still connecting via the internet?


The fact that you're using the term "my Ip address" so loosely is an indication of what you're having trouble getting a handle on here. You are now running a home network, therefore there are many ip addresses involved.

First, your ISP assignes a public, or external, IP address to the gateway device they provide when you obtain internet service. If you go to http://www.canyouseeme.org/ you will see your external ip displayed and you can test any ports on your network to see if they are open.

Second, your router will assign an internal ip address to each component on the network, including, itself (usually at 192.168.1.1) and any computers and handheld devices, and wireless gear that is connected. DHCP, or dynamic host configuration protocol on the router usually handles internal ip assignments using the next open address from the bottom up. So if you attach the first computer hardwired to the router, it'll probably get 192.168.1.2, cell phone on wifi would then get 192.168.1.3, and so on. You can overide DHCP and make manual assignments if you like, which can have benefits, but let's keep it basic for now.

If you phone is connected LOCALLY over Wifi, then it is just connecting using the routers internal addressing scheme. If your phone is on 192.168.1.3 and you have SS running on your computer on 192.168.1.2, then all communication is internal, the phone makes the request fro .3 and the router passes it to .2 and the connection is made.

If you connect your phone over a cell providers network via 3g, you have a whole different scenario. The phone is now connected to a different network which then transmits any request for music from Subsonic over the intrnet. Therefore, your phone has to have the correct address information to get back to your SS server over the net. That means you have to give the servers at yout cell provider the EXTERNAL IP address+the port number that the Subsonic service is open on. Lets say your ip+port# is http://98.117.185.5:8084/ When the request is made to the gateway device with that port number, the router gets the request, then looks at the port number requested and uses the routing table to determine what address INTERNALLY gets the request. In this case if you have the port forwarding information in the router it would pass the request to 192.168.1.2 where the Subsonic service has been patiently listening. The connection is then made and you have tunes.

If the routing information is not correct, then the connection fails. I'd guess that more than half of the posts for assistance on these forum pages are due to not understanding and/or improper set up of the router.

So tell me, which IP address were you talking about anyway? :wink:
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 38 guests