Set hotspot IP address

10,762

The solution was adding the following line to my hotspot config file /etc/NetworkManager/system-connections/myHotspot in the ipv4 block:

address1=192.168.0.1/24,192.168.0.1
Share:
10,762

Related videos on Youtube

Araf
Author by

Araf

Passionate software engineer from India. SOreadytohelp

Updated on September 18, 2022

Comments

  • Araf
    Araf almost 2 years

    I am trying to setup a WiFi hotspot on Ubuntu 16.04. Everything is working, and clients are able to connect to the hotspot.

    How do I change the IP address that my hotspot is assigned? Right now, I am assigned 10.42.0.1 but say I want 192.168.0.1 instead.

    I tried adding the following to my /etc/network/interfaces file:

    auto wlan0
    iface wlan0 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    

    But I am still assigned the same IP address.

    • Hunter.S.Thompson
      Hunter.S.Thompson almost 7 years
      You can change the IP of your hotspot by editing the hotspot config in settings and changing the IPv4 Settings.
    • dirkt
      dirkt almost 7 years
      The hotspot is likely created using hostapd, so look at the config files for hostapd...
  • admin
    admin almost 6 years
    Confirmed working on Kubuntu 16.04. Note after setting IP you need to restart network-manager using sudo systemctl restart network-manager.service.
  • Pa_
    Pa_ over 5 years
    this solution does not seem to work with 172.16.0.1/24 subnet, which is a valid private subnet..