Can't access website on local IP address, but loads with public IP

0

There is something weird going on since tonight.

I have a raspberry pi running a ruby on rails server. When I run my local IP address on my phone there is no problem, and the website loads normally. But when I try my PC to run the same address, I get a connection timeout. When I run my public address there is no problem, and the site loads.

This same problem goes with PUTTY. Local address doesn't work, but external IP works fine.

I tried to disable my firewall, restart my computer, renewed my IP (ipconfig /release, and /flushdns, before /renew), but this didn't help.

Does anyone had this problem too, or know how to fix it?

Jorim Straver

Posted 2016-08-12T21:58:07.477

Reputation: 1

The network is pretty straight forward. Modem(with onboard wifi), switch, computer. All the computers and phones are on the same LAN (192.168.0.x) The server(on a raspberry pi) and my phone are connected trough WIFI. My computer is connected with wire. But it's strange, I restarted my computer and it couldn't connect with putty anymore. I haven't deleted or installed anything in the meantime. – Jorim Straver – 2016-08-12T21:58:38.010

Can you include the output on iptables -nvL. The raspberry Pi and your PC are in the same subnet? – Mark Riddell – 2016-08-12T22:00:52.753

@JorimStraver Don't use comments to add relevant information to your question. Edit your question instead.

– Kamil Maciorowski – 2016-08-12T22:04:38.757

@MarkoPolo Yes. One ends on 14 and the other on 16. they are both in the same subnet mask. – Jorim Straver – 2016-08-12T23:12:49.290

No answers