* Traders see 98% chance of Fed rate cut in September

* Dollar hits near four-month low

* Fed's Waller: Timing of rate cut 'drawing closer'

July 17 (Reuters) - Gold prices extended rise to a fresh all-time high on Wednesday, as growing optimism for an interest rate cut from the U.S. Federal Reserve in September and a weaker dollar boosted demand.

Spot gold rose 0.5% at $2,480.75 per ounce as of 1402 GMT, after hitting an all-time high of $2,482.29 earlier in the session. U.S. gold futures gained 0.7% to $2,485.30.

"The expectation that we are getting closer to a Fed interest rate cut and we've seen this as yields continue to slowly grind lower in anticipation, that, along with a weaker dollar, are the main supportive factors behind this gold move," said David Meger, director of alternative investments and trading at High Ridge Futures.

More Fed policymakers have suggested they are getting increasingly comfortable that the pace of price increases is more firmly on track, back down to the Fed's goal, after higher-than-expected readings earlier in the year.

Fed Governor Christopher Waller said the time for a U.S. central bank interest rate cut "is drawing closer", but uncertainty about the path of the economy makes it unclear when a lowering in the cost of short-term borrowing might happen.

Data showed production at U.S. factories increased more than expected in June, contributing to a solid rebound in output in the second quarter.

Markets now see a 98% chance of a U.S. rate cut in September, according to the CME FedWatch Tool.

Lower interest rates decrease the opportunity cost of holding non-yielding bullion and weigh on the dollar, making gold cheaper for investors holding other currencies.

The U.S. unit weakened 0.5% to near a four-month low against a basket of currencies.

Elsewhere, silver fell 1.2% to $31.01 per ounce. Platinum rose 1.3% to $1,013.07 and palladium steadied at $959.25.

(Reporting by Rahul Paswan and Brijesh Patel in Bengaluru; Editing by Vijay Kishore)