Can I use a bash shell to find my IP address?

435855 pts.
Tags:
Django
IP address
Networking
Once in a while, I need to start a Django development server for work and have it viewable by several other machines in our network. My machine's IP address sometimes changes every now and then so I'm looking to have a little shell alias or something that spits out the "manage.py" command with my machine's current IP address. Maybe something like this:
python manage.py runserver $(COMMAND TO FIND MY MACHINE’S IP ADDRESS GOES HERE):8000
Would that work?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: