I would like to connect two devices via Wifi without using the router.
The ubuntu device has been configured like this.
sudo ifconfig wlan0 192.168.1.46 netmask 255.255.255.0
sudo route add default gw 192.168.1.46 wlan0
And the windows one is configured manually at the Network Connection --> IPv4 IP: 192.168.1.47 Mask: 255.255.255.0 GW: 192.168.1.46
However, I cannot ping one device to another. How should I do it?