Broadcast a Wi-Fi network on Ubuntu 24.04
0
votes
0
answers
44
views
Using my laptop with Ubuntu 24.04 I'd like to simulate a device (a mobile camera) which normally broadcasts a Wi-Fi network and runs a REST server on port 8099 (by sending REST messages to that server it is possible to control the camera).
The workflow with the actual camera looks like this:
1. Turn on the camera.
1. Connect the PC to camera's Wi-Fi network.
1. Check gateway address of the network (e.g.,
192.168.1.10
).
1. Manipulate the camera using its REST API (e.g., to take a photo, send HTTP GET message to http://192.168.1.10:8099/api/takePhoto
).
The "simulated" Wi-Fi network broadcasted by the laptop should use IPv4 addressing and should have gateway address – as the real camera device is controlled by sending REST messages to gateway address. No connection to the Internet is needed.
I've tried to setup a hotspot and than use nm-connection-editor
to change its parameters:
* "Wi-Fi" tab
* Mode: Ad-hoc
* "IPv4 Settings" tab
* Method: Manual
* Address #1
* Address: 192.168.1.100
* Netmask: 24
* Gateway: 192.168.1.1
* Require IPv4 addressing for this connection to complete: ON
* "IPv6 Settings" tab
* Method: Disabled
but the results are not satisfactory – when I connect to that Wi-Fi network on my Windows 10 machine, I see only IPv6 address and no gateway address. When I try to obtain gateway IP address of this network, I get 0.0.0.0.
Is it at all possible to setup the network I desire on Ubuntu 24.04? Is so, what should I do to achieve intended results?
PS I have almost no experience with networking.
Asked by Paweł Kłeczek
(101 rep)
Jul 18, 2025, 07:36 AM
Last activity: Jul 19, 2025, 06:33 AM
Last activity: Jul 19, 2025, 06:33 AM