Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4387

General discussion • How can I set static IP without modify dhcpcd.conf?

$
0
0
I am making an embedded Linux program (Linux DRM with Raspbian Lite) based on the Raspberry Pi. In the program, I need to set the static IP of the Raspberry Pi to connect to the remote device through TCP/IP.

I saw tutorials on the Internet that all achieve this by modifying dhcpcd.conf.

However, the programming language I use is C# (.Net). It seems that it cannot modify dhcpcd.conf directly, and the interaction with Raspbian seems to be limited to command line instructions. But I can't seem to find any way to set a static IP through command line instructions on the Internet.

Is there any way to set a static IP through the command line, or are there any other better suggestions?

Statistics: Posted by mywatermelon — Wed Apr 17, 2024 6:43 am — Replies 2 — Views 66



Viewing all articles
Browse latest Browse all 4387

Trending Articles