NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Android Client v
« Previous 1 … 4 5 6 7 8 Next »
External Access

 
  • 0 Vote(s) - 0 Average
External Access
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,966
Threads: 770
Joined: Nov 2003
#11
2018-04-05, 08:38 PM
Davidw4648 Wrote:Connect fine on local just when I out and the IP is 192.168.0.18 and pin 0000
When you're away from home your IP address is not 192.168.0.18. That is an local network address, only visible from within your home.

If you google "what is my ip address", it'll show you your (current) public ip address. To be able to connect to that remotely though, you'd need to configure your router to forward external requests for port 8866 to your 192.168.0.18 machine (otherwise your home router will ignore the request, and the app will fail to connect).
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#12
2018-04-06, 01:58 AM
I can't seem to get this working either (externally)

I've setup port forwarding in my router and verified via browser.

Android app works fine for local access, however when I attempt to hit via external IP and port, I get a login failure. I can access externally via same IP and port via web browser.

Attached is filtered log (I've removed my external IP and port)

1st attempt - Android app - local network access - successful
2nd attempt - Android app - external address and port - unsuccessful
3rd attempt - Web browser (same android device) external address and port - successful

Any ideas?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,966
Threads: 770
Joined: Nov 2003
#13
2018-04-06, 02:01 AM
JavaWiz Wrote:I can't seem to get this working either (externally)

I've setup port forwarding in my router and verified via browser.

Android app works fine for local access, however when I attempt to hit via external IP and port, I get a login failure. I can access externally via same IP and port via web browser.

Attached is filtered log (I've removed my external IP and port)

1st attempt - Android app - local network access - successful
2nd attempt - Android app - external address and port - unsuccessful
3rd attempt - Web browser (same android device) external address and port - successful

Any ideas?
Does this updated NRecord.exe help?

https://forums.nextpvr.com/showthread.ph...post522945
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#14
2018-04-06, 02:08 AM
Nope, same behavior...

Code:
2018-04-05 22:05:46.995    [DEBUG][3]    Got Web Request (::ffff:192.168.1.1): /services/service    method=session.initiate&ver=1.0&device=android
2018-04-05 22:05:46.995    [DEBUG][3]    method=session.initiate
2018-04-05 22:05:46.995    [DEBUG][3]    parameters:
2018-04-05 22:05:46.995    [DEBUG][3]       method: session.initiate
2018-04-05 22:05:46.995    [DEBUG][3]       ver: 1.0
2018-04-05 22:05:46.995    [DEBUG][3]       device: android
2018-04-05 22:05:46.995    [DEBUG][3]       client_ip: 192.168.1.1
2018-04-05 22:05:46.995    [DEBUG][3]       host_callback: xxxxxxxxxxxxxxx:xxxxxx
2018-04-05 22:05:46.995    [DEBUG][3]       physical_path: C:\Users\Public\NPVR\web\
2018-04-05 22:05:46.995    [DEBUG][3]       user_agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus 7 Build/MOB30X)
2018-04-05 22:05:46.995    [DEBUG][3]       range:
2018-04-05 22:05:46.995    [DEBUG][3]       requested_path: /services/service
2018-04-05 22:05:46.995    [DEBUG][3]       verb: GET
2018-04-05 22:05:46.995    [DEBUG][3]       sid: default
2018-04-05 22:05:46.995    [INFO][3]    InitiateSession (device=android)
2018-04-05 22:05:46.995    [DEBUG][3]    SetSessionObject(133acdc178cf4f33b1ce8e5d6ea4805c, 'child', NON-null)
2018-04-05 22:05:46.995    [DEBUG][3]    Device: android
2018-04-05 22:05:46.995    [DEBUG][3]    <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
  <sid>133acdc178cf4f33b1ce8e5d6ea4805c</sid>
  <salt>ae68b08f-707a-4f86-adb0-09b6817ec0a8</salt>
</rsp>

2018-04-05 22:05:47.011    [DEBUG][5]    Got Web Request (::ffff:192.168.1.1): /services/service    method=session.login&sid=133acdc178cf4f33b1ce8e5d6ea4805c&md5=f1e77175fd4dd04c0440b45a745225b0
2018-04-05 22:05:47.011    [DEBUG][5]    method=session.login
2018-04-05 22:05:47.011    [DEBUG][5]    parameters:
2018-04-05 22:05:47.011    [DEBUG][5]       method: session.login
2018-04-05 22:05:47.011    [DEBUG][5]       sid: 133acdc178cf4f33b1ce8e5d6ea4805c
2018-04-05 22:05:47.011    [DEBUG][5]       md5: f1e77175fd4dd04c0440b45a745225b0
2018-04-05 22:05:47.011    [DEBUG][5]       client_ip: 192.168.1.1
2018-04-05 22:05:47.011    [DEBUG][5]       host_callback: xxxxxxxxxxxxxxxxxxxxxx:xxxxx
2018-04-05 22:05:47.011    [DEBUG][5]       physical_path: C:\Users\Public\NPVR\web\
2018-04-05 22:05:47.011    [DEBUG][5]       user_agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus 7 Build/MOB30X)
2018-04-05 22:05:47.011    [DEBUG][5]       range:
2018-04-05 22:05:47.011    [DEBUG][5]       requested_path: /services/service
2018-04-05 22:05:47.011    [DEBUG][5]       verb: GET
2018-04-05 22:05:47.011    [INFO][5]    LoginSession(sid = 133acdc178cf4f33b1ce8e5d6ea4805c)
2018-04-05 22:05:47.011    [DEBUG][5]    <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="failed">
  <err code="1" msg="Login Failed" />
</rsp>
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,966
Threads: 770
Joined: Nov 2003
#15
2018-04-06, 02:10 AM
if you can PM me your pin number, I'll do the math to check those login numbers add up correctly.

(though I'm a bit busy next few hours)
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#16
2018-04-06, 02:16 AM
PM sent with info requested.
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#17
2018-04-06, 09:55 AM
JavaWiz Wrote:1st attempt - Android app - local network access - successful
2nd attempt - Android app - external address and port - unsuccessful
3rd attempt - Web browser (same android device) external address and port - successful
Any ideas?

I dunno if it's relevant ... you have ...

Quote:018-04-05 21:42:51.139 [DEBUG][4] Got Web Request (::ffff:192.168.1.1): /services/service method=session.initiate&ver=1.0&device=android
2018-04-05 21:42:51.139 [DEBUG][4] method=session.initiate
2018-04-05 21:42:51.139 [DEBUG][4] parameters:
2018-04-05 21:42:51.139 [DEBUG][4] method: session.initiate
2018-04-05 21:42:51.139 [DEBUG][4] ver: 1.0
2018-04-05 21:42:51.139 [DEBUG][4] device: android
2018-04-05 21:42:51.139 [DEBUG][4] client_ip: 192.168.1.1
2018-04-05 21:42:51.139 [DEBUG][4] host_callback: xxx.xxx.xxx.xxx:yyyyy
2018-04-05 21:42:51.139 [DEBUG][4] physical_path: C:\Users\Public\NPVR\web\
2018-04-05 21:42:51.139 [DEBUG][4] user_agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus 7 Build/MOB30X)

In my logs ... I have ...

Quote:2018-04-06 10:25:55.842 [DEBUG][32] Got Web Request (::ffff:85.255.237.37): /services/service method=session.initiate&ver=1.0&device=android
2018-04-06 10:25:55.842 [DEBUG][32] method=session.initiate
2018-04-06 10:25:55.842 [DEBUG][32] parameters:
2018-04-06 10:25:55.842 [DEBUG][32] method: session.initiate
2018-04-06 10:25:55.842 [DEBUG][32] ver: 1.0
2018-04-06 10:25:55.842 [DEBUG][32] device: android
2018-04-06 10:25:55.842 [DEBUG][32] client_ip: 85.255.237.37
2018-04-06 10:25:55.842 [DEBUG][32] host_callback: 92.1.158.8:8866
2018-04-06 10:25:55.842 [DEBUG][32] physical_path: C:\Users\Public\NPVR\web\
2018-04-06 10:25:55.842 [DEBUG][32] user_agent: Dalvik/2.1.0 (Linux; U; Android 5.1.1; Nexus 4 Build/LMY48T)

In my logs ... NextPVR is receiving the true external IP address of the Android device. In your logs ... NextPVR appears to be receiving the IP address of the router.

Something similar happens with connections to NEWA using a web browser from an external IP address ... but it appears that NEWA is able to handle both scenarios correctly (true external IP or local router IP).
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#18
2018-04-06, 10:52 AM
Interesting...

In mine, host_callback is the external IP, and the client_ip is my router.

Code:
2018-04-05 21:42:51.139 [DEBUG][4] client_ip: 192.168.1.1
2018-04-05 21:42:51.139 [DEBUG][4] host_callback: xxx.xxx.xxx.xxx:yyyyy

How does that relate to yours?
Code:
2018-04-06 10:25:55.842 [DEBUG][32] client_ip: 85.255.237.37
2018-04-06 10:25:55.842 [DEBUG][32] host_callback: 92.1.158.8:8866
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#19
2018-04-06, 11:25 AM
JavaWiz Wrote:Interesting...

In mine, host_callback is the external IP, and the client_ip is my router.

Code:
2018-04-05 21:42:51.139 [DEBUG][4] client_ip: 192.168.1.1
2018-04-05 21:42:51.139 [DEBUG][4] host_callback: xxx.xxx.xxx.xxx:yyyyy

How does that relate to yours?
Code:
2018-04-06 10:25:55.842 [DEBUG][32] client_ip: 85.255.237.37
2018-04-06 10:25:55.842 [DEBUG][32] host_callback: 92.1.158.8:8866

The 92. address is the external address of my router.

The IP address that is reported by my phone in Android Settings --> About phone --> Status is 10.something. This is a private address that cannot connect to the Internet. My phone provider must have a router that does network address translation and the 85. address in my web.log is the external IP address assigned by the phone provider router.

How are you connecting your Nexus 7 to the Internet?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#20
2018-04-06, 09:49 PM
I connected via the xfinity wifi access point on my router.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  remote access donschjr 4 462 2025-07-13, 01:06 PM
Last Post: donschjr
Question Remote server access bitoclass 1 879 2025-03-10, 06:31 AM
Last Post: mmortal03
  How to access NextPVR remotely without Kodi? wiledafoe47 1 2,662 2021-07-30, 04:15 PM
Last Post: mvallevand
  External access using reverse proxy oliroe 5 2,364 2021-02-01, 11:12 PM
Last Post: mvallevand
  Open stream in external player ctrlbrk 6 5,713 2020-06-07, 09:58 PM
Last Post: ctrlbrk
  Possible to use an external player (MX Player) for playback? lolento 0 2,313 2019-01-18, 05:51 AM
Last Post: lolento
  External Access - Set port? JavaWiz 4 3,487 2018-04-05, 09:20 AM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode