Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
retrieving and changing the ip address
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kokopelli" data-source="post: 200119"><p>When you say "do it by a code" what do you mean? </p><p>I would use network locations if they can suit your needs. If not ifconfig probably works on OS X, though I have not tried changing my address using it....</p><p></p><p>To get the address though here is the simple way:</p><p>[code]</p><p>ifconfig | grep 'broadcast' | awk '{print $2}'</p><p>[/code]</p></blockquote><p></p>
[QUOTE="Kokopelli, post: 200119"] When you say "do it by a code" what do you mean? I would use network locations if they can suit your needs. If not ifconfig probably works on OS X, though I have not tried changing my address using it.... To get the address though here is the simple way: [code] ifconfig | grep 'broadcast' | awk '{print $2}' [/code] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
retrieving and changing the ip address
Top