1

I am getting into web development for the first time and my purpose now is to test my website from external devices.

I have a mobile router. What I would like to do is to create a home network in such a way that all the devices connected to the router (wirelessly) would be part of the same network, to (e.g.) be able to see the prototype of the website I am building on my laptop through my smartphone. Is this possible?

I am on Ubuntu 16.04, and I personally don't have great experience with networking stuff, so I hope my question is clear.

EDIT 1

Just to clarify a bit what I would like to do... I am following this tutorial on setting up a webserver using Raspberry and Flask. In step 7 ("Browsing on other devices"), it reads Since we used host='0.0.0.0', on the app.run line, the web server is accessible to any device on the same network, including other computers, tablets, and smartphones.(...) Open up a web browser on the other device and enter the Raspberry Pi's IP address into the address bar with :5000 on the end e.g. http://192.168.1.3:5000/.

Of course, I use the laptop IP instead of the Raspberry one. However, the content of the page is not showed from my smartphone.

The router is a Vodafone R216-Z 4G WiFi (I found some specs at this page).

15
  • 1
    I am not exactly sure what is the actual problem? As I understand you have a router that connects internet using 4G network and it has WiFi enabled and this is your WLAN. Is it correct? So are all mobile devices you want to use to test connecting to this WiFi Network? If so then these devices are actually inside your home network (WLAN). What you need to do now is to connect your laptop to the same WiFi network (the same WLAN), start web server on this laptop and connect to this web server from mobile devices using local ip address of your laptop.
    – running.t
    Oct 21, 2016 at 11:44
  • 1
    @umbe1987: Routers normally have a setting called Client Isolation or similar which prevents devices on the network from seeing each other. However, some 4G routers may not allow you to control this since they are typically used as access points only. You should go in to the router's configuration page to look for this setting.
    – James P
    Oct 21, 2016 at 12:46
  • 1
    Probably not as it states to access the network settings so doesn't sound remotely related to allowing the network to talk to each other...
    – Kinnectus
    Oct 21, 2016 at 13:00
  • 1
    @umbe1987: It could be worth trying with debug=False instead to see if it makes any difference
    – James P
    Oct 21, 2016 at 15:16
  • 1
    @umbe1987: Please also try to disable firewall on your laptop. If you have firewall enabled it may block incomming connection to your laptop on non-default 5000 port.
    – running.t
    Nov 8, 2016 at 13:16

1 Answer 1

1

From discussion in comments it looks like the problem is firewall running on your laptop, which does not allow incoming connections on non-standard ports e.g. 5000 port. Please try disabling your laptop firewall or adding appropriate firewall rule to accept incoming connections on 5000 port.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .