Access local website from another computer in the same network - windows

I recently wrote a web using Flask, and made the host='0.0.0.0', port=5000.
I can access the web with 127.0.0.1:5000 or localhost:5000 or 192.168.1.12:5000(my IP), but I can only do this with the computer that runs the codes.
How can I access the website from another PC in the same LAN? I have tried all the method I can find online. But none of them worked.
I'm running the code on windows 10. Please help!

Maybe Windows Defender Firewall or antivirus is blocking connection from outside. Try disabling it (or, better configure it to allow connections only to your service).

To access the website from another PC only works with your IPv4 adress.
So only 192.168.1.12:5000 would work.
But it looks like the port 5000 is blocked. Maybe it's blocked by a virus protection.
Try a port like 80 or 8080.

Related

Can't access localhost from computer running on same network

I'm working on two computers on the same network. Computer A has an app working on localhost:4444. However, I can't access it from the browser of Computer B.
Here is my situation:
I pinged it's IP and I'm getting successful responses.
I've tried accessing through the browser: http://192.168.X.X:4444
I'm currently sharing files across both computers via the same network successfully.
Can anyone please help me make this work?
Is port 4444 on Computer A accessible from another computer?
Maybe this helps: https://technet.microsoft.com/en-us/library/ms345310(v=sql.100).aspx
(I am posting a reply since I cannot comment...)

Remotely accesing ftp server on pc

My problem is the following I want to develop and app that downloads some files in a ftp server(my laptop) which I could easily solve if I were on the same lan.
What can I do to connect by ftp to my laptop when the phone is connected to a different lan than the computer?
Can be this problem solved by setting my router to port forward? How can I do this?
I have tried setting an account in no-ip.biz but I must wait 60 days to activate my domain and I when I ping my host I get responded like if it was online. But I can't access it through the web browser, ssh or telnet
You need to do a port forward on your router. Use port 21 and redirect it to your laptop.
Then to access it from everywhere connect to your box IP.

is it possible to install a simple proxy webserver on a VPS to bypass a blocked port?

My webhosting company serves up Control Panel on a funky port number (20000 or something). This port is blocked from work, so I cannot access Control Panel during the day (in case of emergency).
Is it possible, and is there an easy way to run a simple proxy on a VPS so I can browse to the VPS on port 80 and have it talk to the Control Panel machine on the funky port 20000?
Any suggestions are helpful!
Thanks,
Rob
Just start a SSH-forward:
ssh -L 8080:localhost:20000 user#yourhost
You can access your config interface using http://localhost:8080
You can create such a tunnel using Putty on Windows, too. http://oldsite.precedence.co.uk/nc/putty.html

Can't access my index.html (via Apache) from other computer (LAN nor Internet)? Please help

lets make it simple to answer.
I installed Apache 2.2. Now when I do 127.0.0.1 in Firefox, I get the "It works" page. When I do 10.0.1.10 (my servers internal IP) on another PC on the SAME network, I won't get anything :-(. I forwarded port 80 on my router and made sure Firewall doesn't block Apache. If I type my external IP:80 I still can't get into my "index.html". My settings (more less default)
Network Domain: localhost
Server Name: localhost
I also got a FTP via FileZilla running on that PC. It works perfectly, even over Internet. I have also set up a DynDns hostname. If I do ftp://mydyndns.hostname.com I get to my ftp server.
What am I missing? Some more Windows setup?
Thanks a lot in advance!
I installed Linux on my computer and found all servers run better on it :) Thanks everyone...

setting up home ftp server using filezilla

I googled, followed all the instructions but still stuck, and unable to create a home ftp server.
My internet is from dsl modem -> vonage router -> wifi router
FileZilla server ip is 127.0.0.1 and it works fine when tried from command prompt. But I need it to be accessible from outside.
I enabled ftp on wifi router's web settings page using virtual server setting.
I am stuck at this point, I don't know what else to do further. Any help is greatly appreciated.
Also, if you are planning on accessing your server remotely, (not in your network) you will have to enable port forwarding on your router. (Use the ip address of the machine running the server and use port 21) Otherwise, you only be able to connect while in your LAN.
This pretty much summarizes your needs(via lifehacker.com)
If you're FTP'ing across your home
network (like from your upstairs PC to
your bedroom PC), you can reach the
server by using its internal network
address (most likely something like
192.168.xx.xx.) From the command line, type ipconfig to see what that address
is. If you want to log into your FTP
server over the internet, set up a
memorable URL for it and allow
connections from outside your network.
To do so, check out how to assign a
domain name to your home server and
how to access your home server behind
a router and firewall.
Original Article
How to assign a domain name to your home server
How to access a server behind a router and firewall
You need to be able to access your internal network from the internet. Consider using a service like dynDNS if your router supports it.

Resources