Need help accessing a port from within my LAN (XBMC remote)

Questions about WIFI networks and devices
Forum rules
Before you post please read this

Need help accessing a port from within my LAN (XBMC remote)

Postby MSeries on Sun Mar 31, 2013 3:26 pm

I have Mint 13 with Cinnamon 1.6.7 and have installed XBMC which works well, it can retrieve content from the internet and from my MiniDLNA server on my Ubuntu server machine. I want to set up XBMC Remote from my Android phone and I have followed the instructions properly. It needs to access the XBMC server on port 8080 but it can't find my server. So to test it, I stopped XBMC and started Apache Tomcat on port 8080 and attempted to access this from the same Android phone, it failed. I am sure the problem is not related to my router because I can access my ubuntu server on all ports that I need to. The firewall on the mint machine is not enabled but my problem is like the port is blocked. I have tried ports 8085 and 8080, both with the same problem. Can anyone help me diagnose this ?

thanks
MSeries
Level 1
Level 1
 
Posts: 46
Joined: Sun Sep 25, 2011 4:15 pm

Linux Mint is funded by ads and donations.
 

Re: Need help accessing a port from within my LAN (XBMC remo

Postby jawgrape on Sun Mar 31, 2013 5:51 pm

Can you get to the http using 8080 server from a laptop or different computer on your network?

If you can it at least tells you that the server is running and listening on the proper port.

Another way of checking to see that the server is listening on the port you expect is to run the netstat command:
Code: Select all
netstat -l

jaw@pyrite:~$ netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     
tcp        0      0 localhost:mysql         *:*                     LISTEN     
tcp        0      0 *:netbios-ssn           *:*                     LISTEN     
tcp        0      0 *:http                  *:*                     LISTEN       <<<<<<<<<<< this server is listening on standard http port (80)


You should have an entry for :8080 instead.

Yet another way is to run nmap (google it) from another host on your network, and it will report if your server can be connected to from a seperate host.

One or all of these should help to tell you if the server is running like you think it is, or if the android device is part of the problem.
jawgrape
Level 1
Level 1
 
Posts: 29
Joined: Tue Mar 12, 2013 9:10 pm

Re: Need help accessing a port from within my LAN (XBMC remo

Postby MSeries on Mon Apr 01, 2013 6:19 am

Thanks for taking time to answer. When I did netstat -t with my http server running on 8080 I did not see it listed. There server uses other connectors on other ports and these are listed. I stopped my wifi and plugged in a CAT5 cable and everything is now OK. I can browse to the webserver on my Android and when I start XBMC on 8085 I can use the remote properly. So, whatever the problem is, is specific to my wifi. The Ubuntu server I spoke of earlier is not using Wifi so it's not clear at this point if the problem is with the laptop or the router. I'll boot us a Windows XP lapop and try that, if it works then it'll be due to the laptop and not the router.
MSeries
Level 1
Level 1
 
Posts: 46
Joined: Sun Sep 25, 2011 4:15 pm

Re: Need help accessing a port from within my LAN (XBMC remo

Postby jawgrape on Mon Apr 01, 2013 12:25 pm

ok glad your issue is isolated to your wifi set up, at least you've narrowed it down.

But just so you know netstat -t doesn't tell you what port the server is listening on. -t tell you what tcp connections are established at a snapshot in time. :D
jawgrape
Level 1
Level 1
 
Posts: 29
Joined: Tue Mar 12, 2013 9:10 pm


Return to Wireless

Who is online

Users browsing this forum: No registered users and 16 guests