0

I'm running ubuntu server 20.04 LTS in raspi 4 model B.

I want to set a static IP in one raspi and run API over that ip and that must me accessible over the the network to which I'm connected to. I have wlan0 and wlan1 in both devices.

For example i want to connect wlan0 (with static ip) of device1 to a router and device2 will also be connected to the same router and I must be able to access the static ip of the device1 in device2

Is this possible i tried few configurations but i was not able to connect to the IP remotely

Edit : Content of yaml file is as below

network:
  ethernets:
    eth0:
      dhcp4: true
      optional: true
  version: 2
  wifis:
    wlan0:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.0.200/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]
      access-points:
        "SSID":
          password: *********
    wlan1:
      access-points:
        "SSID":
          password: *********
      dhcp4: true
      optional: true

0 Answers0