Giter VIP home page Giter VIP logo

rpi-wireless-hotspot's Introduction

RPI-Wireless-Hotspot

Configures your Raspberry Pi with an attatched WiFi dongle or a Raspberry Pi3 with built in WiFi as a hotspot, broadcasting your ethernet connection to other devices. Could be useful in hotel rooms, college dorms or if you just don't feel like buying a router!

Features:

  • Hotspot automatically starts on boot without extra configuration.

  • Configured WiFi network uses WPA encryption.

  • The default SSID is "RaspberryPiFi" and the WPA key is "0123456789A," which can be changed during installation.

  • Pi's local network functions continue to operate normally after setup.

  • Easy setup of custom or preconfigured DNS server, including unblock-us for bypassing Netflix geoblocks.

  • Router enumeration for WiFi network.

  • Enables Chromecast compatibility with unblock-us by intercepting Google's DNS requests on the Pi.

Requirements:

  1. A Raspberry Pi model B or Pi3 running raspbian

  2. A Raspbian compatible Wifi adapter. This script assumes that your adapter uses the nl80211 drivers in hostapd (the majority of new products should support this). Others can be made to work, but require a custom compilation of hostapd (guides are out there).

  3. An active ethernet connection

Installation:

  • In the terminal, run: git clone https://github.com/harryallerston/RPI-Wireless-Hotspot.git

  • Navigate to folder, and execute: sudo ./install

  • Confirm that you are happy for changes to be made

  • Choose a preconfigured DNSalternative DNS or configure a custom DNS

  • If you require chromecast support with unblock-us select the appropriate option

  • This should automatically set everything up and leave you ready to go

Notes and configuration

  • To change default WiFi channel, edit /etc/hostapd/hostapd.conf accordingly.

  • This setup has been tested on a fresh install of raspbian.

  • It is advised that this be set up on a fresh install.

  • If set up on an existing install then any current config files will be backed up with the extension ".old" in the relevant folders prior to installation. (this allows returning to original network settings if required)

rpi-wireless-hotspot's People

Contributors

cybertaf avatar davefp avatar dsoms avatar harryallerston avatar matthieur avatar sudomakeinstall avatar tomcatt360 avatar unixabg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi-wireless-hotspot's Issues

Redirect wlan0 traffic to eth0

Hi, i´m working on a project with my raspberry PI 4
I need to connect to my raspberry PI another device by eth port, and this device has a fixed IP like 192.168.1.222.
I need also to have my eth card with the fixed IP192.168.1.220.
Finally, I need to connect to my RPI via WIFI from my laptop or smartphone. So, I have a web server and a web page on my RPI, and I need to send a file from the web page to the other device connected via eth.
I have installed RPI hotspot, and now I can connect via WIFI to my raspberry. So this works. I also have done my web and have APIs to send the files....
The problem is that if I connect my raspberry via ethernet to a router, and also connect my device to the same router, all works!!
But I need to redirect traffic to the device without the use of a router.
So, it seems like eth and wlan is not on the same lan. Maybe I need that the wlan gives an ip to the ethernet, to be in the same lan, but I don´t know how to do it. Can anyone help me? Thank you

Doesn't work on Raspbian Stretchs

Hi,

After installing the hotspot, eth0 is missing and dhcpd doesn't want to start because of the static and dhcp use in /etc/network/interfaces.

I repaired that by removing the static definition and adding it to /etc/dhcpd.conf. All seems to work (dhcp, eth0 interface), but the hotspot dont't give internet connection.

LAN connection missing on most reboots

After installing the hotspot with this script, the connection to ETH0 is missing on most reboots. I've set my Raspberry up to reboot whenever it has no LAN connection, so every reboot triggers multiple more reboots. Eventually it gets a connection, but it takes a few minutes.

I don't know how to log anything related to this, but it happens on most starts, seemingly randomly.

Raspberry freezes/restarts when connecting PC to hotspot

Whenever I connect my PC to the Raspberry's hotspot, the Raspberry freezes or restarts after a few seconds or minutes. I don't know which one it is, because I've set it up to restart when it freezes.

I don't really know how to log anything related to this, but it happens consistently.

Dynamic DNS Listing

This would allow us to have lots of DNS servers displayed on a list. The user could select a number next to the chosen service to select one. This would have to be deployed after Issue 12 is finished.

If this is given the go-ahead, please create a new branch so that testing and development can go on while leaving the stable branch alone.

Obtaining IP Address...

Hello, and thank you for your work so far on this.

I put this on a Raspberry Pi 3 (with built-in wifi).
It shows up on the network, but when I try to connect, it sits on the "Obtaining IP Address..." step until it times out.

Any idea why this might be happening?

Thanks.

Knocking Out Internet Connection

I'm installing this onto a fresh installation of Raspbian (2017-09-07-raspbian-stretch) on a Raspberry Pi 3b. I am using the stock Ethernet connection as the internet connection and the built in WiFi for the wireless. After the initial installation of Raspbian I verify that the internet works by opening the browser and pulling up google. I install RPI-Wireless-Hotspot and reboot again. The internet ceases to work.

Not sure what's causing it. I'm basically following Know-How 301 and having no luck. I attempt to pull up the internet via the Raspberry Pi browser and a hotspot attached device. Neither worked. I also checked to see if it is able to pull websites via the IP address, to see if just DNS is broken, and cannot do that either.

Doesn't work

This does not work at all on a newly written sd card with Jessie or Stretch.

After Install, it is lost from LAN, and it can't be reconnected.

SSID not found

After following all the instruction, i installed successfully without error and rebooted. However, i cannot find the SSID from my phone nor my pc.

Is there anything i missed during the installation? What do i?

Curses-based installer

We could eventually move over to a nicer looking curses installer, similar to raspi-config

change adapter

How would one change the adaptor ie: from wlan0 to wlan1 ?

Kills ethernet on Rpi 2 B using wifi adapter

After, running this script, my hotspot is finally made. Thanks a lot for the same.
But, suddenly my ethernet dies, now I cannot use internet on my pi.
Is there a fix to solve the same.
ifconfig doesn't show an eth0.

Doesn't work...

I installed it appr. a year ago and it worked (on 3B+).
Now, after a year, having installed it on the same RPi, it doesn't.
The moment it is installed, it reboots the Pi and kills the WiFi.

Is there a solution to it or should I just rather forget this project for good?

dhcpcd failed

Hi,
Thank for this git.

I got an issue, my pi doesn't recognise the wire connexion ... Systemctl tell me that the dhcpcd is failed.

But however, from other devices I can see the AP.

Do you guys have any ideas about it ?

Cheers !

Dynamic File Creation

We'll eventually have to pipe text to generate our own configs on the fly, or we're going to have tonnes of configs for every eventuality.

It also makes it easier for the user to enter settings during the config IE custom DNS server.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.