obs-tablet-remote icon indicating copy to clipboard operation
obs-tablet-remote copied to clipboard

I can localhost into my PC, but using the IP doesn't work

Open yashendra2797 opened this issue 6 years ago • 11 comments

Hey there! I just cam across this tool and set it up. First everything went amazingly awesome, however on trying the same on my iPad, using localhost (obviously) did not work. Realizing my error I tried my local IP address and then the external one. I even checked if the port was open (it was). However, the site refuses to connect even on my own PC with an IP address, working only via localhost. Could you help me out?

Thanks!

PS: I apologize if this was the incorrect place to post this.

yashendra2797 avatar Sep 21 '17 01:09 yashendra2797

I have the same error. Please help I need to use this for streaming.

hengie avatar Oct 17 '17 10:10 hengie

You need to be inside a network that can reach your PC.

a) There must not be a firewall between tablet and PC, including the PC internal firewall. b) There must be a route from tablet to PC, so use LOCAL LAN OR a public IP in the PC - warning public IP is dangerous - c) You must understand what it means security wise to make your PC IP public in b. Hint: it means anyone can call your PC from the internet. 🥇 :)

sirkkalap avatar Oct 21 '17 15:10 sirkkalap

a) There must not be a firewall between tablet and PC, including the PC internal firewall.

You mean I have to disable Windows Firewall?

b) There must be a route from tablet to PC, so use LOCAL LAN OR a public IP in the PC - warning public IP is dangerous -

I DID use Local LAN. Which is why its weird why I can't connect.

c) You must understand what it means security wise to make your PC IP public in b. Hint: it means anyone can call your PC from the internet. 🥇 :)

Its an internal network. Port forwarding is on. I can call the port from my MacBook Air. Just can't connect to the server.

EDIT: I just realized that this might be construed as passive aggressive, in which case I apologize, that isn't my intention 😄

yashendra2797 avatar Oct 21 '17 15:10 yashendra2797

connecting and nothing happens :/ oh, server not reachable after 1 min

Avatar4pro avatar Dec 27 '17 10:12 Avatar4pro

Check if your PC has multiple IPs, and which OBS binds to. That should be the one the websocket plugin listens on.

Settings → Advanced → Network (at the bottom) → Bind to IP. Try messing with the settings down there as well.

Does sound firewall related to me, though. I have no idea how the Windows firewall works (using mostly linux), but you should be able to add an exception for OBS somewhere.

Last thing that comes to my mind right now is trying another port. Maybe something else is already listening on your local IP and the websocket plugin port?

kaimi avatar Jan 07 '18 07:01 kaimi

Was this ever sorted out for you guys? I am getting this. I have all ports forwarded, opened up, firewalls down, etc. I can "localhost" from the page and get to it, even with my phone, but neither phone nor PC will reach it by IP address, or outside the network. websocket is running and connected, listening to port 4444. 4444 is forwarded in both modem and router, and Norton AV.

geriatricginger avatar Sep 20 '19 18:09 geriatricginger

Nope.

yashendra2797 avatar Sep 25 '19 23:09 yashendra2797

So I sorted mine out. Apparently, Comcast/Xfinity was blocking 4444. Changed to a different port and can now connect fine.

geriatricginger avatar Sep 26 '19 13:09 geriatricginger

If anyone is using Linux (Mint) and having problems like I do here is the fix:

It opens all ports. be careful. dont do DMZ or other stuff.....

sudo iptables -P INPUT ACCEPT                                                                                     
sudo iptables -P OUTPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -F

rodrigograca31 avatar Jun 14 '21 18:06 rodrigograca31

In case that wasn’t obvious, do not do that ↑. It basically disables the firewall entirely.

Also do not just use random commands you found somewhere. In this case instead of allowing incoming traffic to port 4444 it sets the default policy (= when no rules apply) to allow all traffic, for incoming packets, outgoing packets and forwarding. Then it deletes all rules in all chains. You know, just in case there was a rule explicitly forbidding port 4444.

Instead please do it properly. The easiest way is probably to use whatever frontend your OS provides, or at least spend 5 minutes googling how iptables works. Here’s a random front page hit.

kaimi avatar Jun 15 '21 06:06 kaimi

@kaimi none of that worked for me. I had 4444 allowed and I even disabled my firewall with "sudo ufw disable" but seems to be some other thing blocking it which those commands solved.

also that doesnt stay across reboots so you will need: iptables-persistent too

I was providing 1 potential solution! of course you shouldn't run random commands from the web unless you know what they do.

rodrigograca31 avatar Jun 15 '21 11:06 rodrigograca31