Link to home
Start Free TrialLog in
Avatar of rjud
rjud

asked on

Setting current IP address in configuration file

Hi

As a relative newbie to Linux I need some advice.

My computer gets a dynamically IP address when starting up (from my provider, using DHCP). Now I need to specify this IP address in a configuration file used by one of my server daemons.

The line in question in my config file reads:
client_ip = "123.123.123.123"

Is there an easy way to change this line so it contains my dynamically assigned IP? Specifying a DNS name is not possible, I really need to use the numerical IP.

Can anybody help me?

Thank You!
rjud
ASKER CERTIFIED SOLUTION
Avatar of majorwoo
majorwoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rjud
rjud

ASKER

This works great (and it looks pretty cool too).

Thanks a lot!
rjud