如何将媒体的路径名从localhost更改为Magento中的其他本地URL?

I deployed Magento application on my local. When I am trying to access it using some other system in my local network, application gets opened but am not getting images and css. It is getting resolved to localhost/magento/imagename.jpg. My application is deployed in 127.0.0.1/magento/. Do I need to change my PHP.ini or some setting in Magento Admin?

Change the base url to your internal IP address, the ip address your router assigns to you.

In Windows:

Start -> Type in cmd and press enter -> ipconfig

In Linux:

ifconfig

Find your local IP which might look like 192.168.1.xx or 10.0.0.xx Enter that as your Base URL (with http:// in front and / at the end) in the magento backend under System -> Configuration -> Web

OPTIONALLY

You can enter {{base_url}} as your Base URL in magento backend, this will allow any URL to work, this is however not recommended for live.

EDIT

Don't forget to clear your cache by deleting everything in var/cache/