0

I have a computer that has a wireless connection and has an ethernet. I need to communicate with a connected device through a local network created between my computer and this device (communication will be done via TCP/IP using socket).

For this communication, I need my computer to have the IP 192.168.0.57 (will be the host) on the ethernet. The other device expects to have the IP 192.168.0.201, so I need my computer to provide that ip at the other end.

Is it possible to configure it using NetworkManager (nmcli)?

Joey Fran
  • 101
  • What are you trying to accomplish doing this? You can just assign each adapter the IP addresses you have listed so why are you using nmcli? – DubStep Jun 13 '23 at 22:59
  • Is there a router between your computer and the device? or both connected each other directly? – 3735943886 Jun 14 '23 at 01:24
  • @DubStep I can't configure the other device. It is configured to receive the ip 192.168.0.201. I need to create this "subnet" between it and my pc. – Joey Fran Jun 14 '23 at 02:31
  • @3735943886 Both are connected to each other. I think I'll have to use dnsmasq for that... – Joey Fran Jun 14 '23 at 02:33
  • 1
    @JoeyFran Likely. If the device is connected to your computer directly, and the device requests IP to your computer, then you have to set up DHCP server on your computer with dnsmasq or dhcpd. It cannot be done solely with nmcli. – 3735943886 Jun 15 '23 at 03:57
  • Thank you @3735943886. – Joey Fran Jun 15 '23 at 13:12

0 Answers0