China insists the growing crisis on the Korean peninsula must be solved through dialogue and war must not be allowed to break out.
Chinese President Xi Jinping says war must not be allowed to break out on the Korean peninsula while UN Secretary-General Antonio Guterres warns of the danger of "sleepwalking" into conflict.
Xi made his comments to visiting South Korean President Moon Jae-in just days after US Secretary of State Rex Tillerson offered to begin direct talks with North Korea without pre-conditions.
But the White House said on Wednesday that no negotiations could be held until North Korea improved its behaviour. The White House has declined to say whether President Donald Trump, who has taken a tougher rhetorical line toward North Korea, approved Tillerson's overture.
North Korea tested its most advanced intercontinental ballistic missile on November 29, which it said could put all of the United States within range, in defiance of international pressure and UN sanctions.
The United States has said all options were on the table in dealing with North Korea, including military action.
While South Korea and China share the goal of getting North Korea to give up its nuclear weapons and stop testing increasingly sophisticated long-range missiles, the two have not seen eye-to-eye on how to achieve this.
Meeting in Beijing's Great Hall of the People, Xi told Moon that the goal of denuclearising the Korean peninsula must be stuck to, and war and chaos cannot be allowed, Chinese state media said.
"The peninsula issue must, in the end, be resolved via dialogue and consultation," Xi was cited as saying.
Guterres said Security Council resolutions on North Korea's nuclear and missile programs must be fully implemented by Pyongyang and other countries.
"Security Council resolutions must be fully implemented, first of all by North Korea, but by all other countries whose role is crucial," he said after meeting Japanese Prime Minister Shinzo Abe.
"The worst possible thing that could happen is for us all to sleepwalk into a war."
North's state news agency KCNA said Trump was taking a big step towards nuclear war in seeking a naval blockade and North Korea would take "merciless self-defence" measures if the United States tried to impose one.