I have a computer with Internet access to the network by using a LAN proxy . I want to provide access when opening the browser will display the login menu if the login is successful then it could access the internet.
Whether it can be done ? I know can be done if using proxy with hotspot network.
I guess you are looking for is a captive portal.
I don't have much experience with them but you could look into packetfence, wifidog or chillispot.
Related
Good day to all,
I am trying to create my website locally, and perhaps access the website through my phone from the localhost. Forgive me I am just a beginner.
So I used ipconfig -all to find my IPV4 address and it was e.g
192.168.1.102
And on the ASP.net webapplication I ran, the address was:
https://localhost:44337
Hence, I was trying to access this Web Application of mine created on my PC, to be accessed on my phone. On my phone, I entered the address:
192.168.1.102:44337
I went into my firewall setting to add a new rule for inbound connection to allow all ports to be connected as well. But it still don't work. Both my PC and phone is connected to the same wifi.
Does anyone know the fix? Thank you in advance.
You might have to configure an IIS server. This tool comes default in Windows (professional?), and there's lots of good resources on how to do this, all of which do a better job of explaining the process than I could do.
Essentially, you will need to:
Publish your site (Done through visual studio or cli)
Enable and configure your IIS
Create a new website in the IIS manager and point it towards the output of your web app publish
After opening the neccessary firewall ports, check to see in which IP address your web application is running. I am assuming you are using some sort of HTTP webserver software like IIS(windows) or Apache(Linux). In IIS to do that you must go to your site bindings and where it says "IP Address", select "All Unassigned" (NOT localhost or 127.0.0.1)so that the web application runs in all network adapters and IP addresses.
See full IIS documentation here: https://learn.microsoft.com/en-us/iis/get-started/getting-started-with-iis/getting-started-with-the-iis-manager-in-iis-7-and-iis-8
Follow the guide: https://medium.com/#manujsdeveloper/debug-a-website-local-or-remote-hosted-on-an-android-mobile-device-ff2c43527be1
You will need to set your phone in developer mode and get the OEM USB driver specific for your phone. and get a ADB running on your computer
I suggest supplement your knowledge with with links below, as some things are left out in the above guide and vice versa:
https://developer.android.com/studio/command-line/adb
https://developers.google.com/web/tools/chrome-devtools/remote-debugging
I have an ASP.NET web application that has been hosted in IIS local Machine.
My Question is :
Is there any free or paid method that allows browsing this web
application from the internet as Host Server ?
Thanks
The easiest way to to publish it directly onto the internet. You do run the risk of attackers then being able to attach your machine, so you will need to brush up on your security skills. It might be worth looking into one of the free hosting options from AWS, Azure or Google Cloud.
To use your local machine as a web server, first, configure it to use a static IP. Its been a while since I've done it on windows, but this looks about right http://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/.
Next you will need to configure port forwarding on your model. You want to send all traffic on port 80 to your machine, using its new fixed IP address. If your using HTTPS as well, configure port 443 to go to your machine. There are too many different modem brands, all of which handle this slightly differently, to consider offering any more help on this. You will need to do some reading up on your particular modem for step-by-step instructions.
If your internet connection is using a fixed IP, then you can stop here.
If not, or if you just want a domain name, then its worth signing up for a dynamic dns service. I use No-ip, its free, it integrates with my modem and I haven't had any problems with it in the last few years. Once this is in place, you will be able to hit your webserver just like a real one. Using something like "http://mypc.no-ip.biz/mydemoapp/
But again, be warned about exposing your machine on the internet. There are nasty people out there who love to hijack other peoples computers.
Update:
This should give you some guidance on port forwarding
http://www.howtogeek.com/66214/how-to-forward-ports-on-your-router/
Try http://www.noip.com I just logged in and it seemed happy. Otherwise, have a click through all the settings in your modem looking for ddns or dynamic DNS. There is usually a drop down of all the providers that it will talk to. And some providers have apps that you run on your PC , which is easier that working with the modem for some. (Or for models that don't support ddns.)
I need to set up Wi-Fi, where user after connecting to Wi-Fi will have to login to connect to the internet.
Like after he connects to Wi-Fi, he opens page in web browser. He will be automatically redirected to login page, where he must enter credentials and then he will get internet access.
I think that the router will somehow redirect the traffic over server in LAN and then some kind of SW running on the server will do this, but what SW should I use? I don't know how this is called, so I couldn't googled anything.
Thanks
So I managed to find it, it's called Captive portal, here is a tutorial how to do it: http://blog.trifork.com/2013/01/15/building-a-captive-portal-controlling-access-to-the-internet-from-your-network/
I'm building a HTML 5 web-app being delivered from local web server (being created by mamp) over a wireless network with no access to the internet.
I'm wondering if there's a solution for tracking Analytics for the web-app without it being connected to the internet.
I'm not super knowledgable about networks, so any info helps.
You could install something like http://piwik.org/ on one of the machines on your network.
Yes, you can track analytics as long as the browser viewing the site has access to the Internet and not just a LAN.
Does anyone know how to detect a guest network as a captive portal.
I mean can i detect a network as a CAPTIVE PORTAL.
After doing some digging and trying different captive portals, it seems that they all work differently... some of them do DNS trick(DNS responds with same IP address for any query), some of them just do some kind of transparent http proxy magic probably using squid or packet level forwarding/redirecting (like one could do with iptables) so that no matter what the URL you're presented with the login screen, and in such cases, DNS queries will be answered with correct IP address, but connecting to port 80 on that host name will result in you being redirected to login page...
I tried this idea but no luck!
Is there any way to detect a network as hotspot(captive portal) where http login is required???
Thanks in advance
Puneet
The Apple solution is to GET http://www.apple.com/library/test/success.html - if it's not successful assume a captive portal and launch the web browser. You could try something similar if you can set up a server, and launch a QWebView in the case of failure.