(JERUSALEM) -- Seeking to reassure the United States' primary ally in the Middle East, President Obama Wednesday told Israeli Prime Minister Benjamin Netanyahu that his administration remains committed to doing "what is necessary" to prevent Iran from obtaining a nuclear weapon.
"We do not have a policy of containment when it comes to a nuclear Iran. Our policy is to prevent Iran from acquiring a nuclear weapon," Obama told reporters at a joint press conference after a series of closed-door meetings with Israeli leaders.
"The United States will continue to consult closely with Israel on next steps. And I will repeat, all options are on the table," he said.
It's no secret that Obama and Netanyahu have had a rocky relationship, although it was hard to tell by the way the two leaders publicly lauded each other and joked around.
During the American presidential campaign, Republicans alleged that President Obama was not committed to protecting Israel, but Wednesday Obama and "Bibi," as he called him, appeared at ease in front of the press.
Netanyahu even placed Obama's commitment to Israel's right of self-defense above that of any other U.S. president.
"I appreciate the fact that the president has reaffirmed, more than any other president, Israel's right and duty to defend itself, by itself, against any threat. We just heard those important words now. And I think that sums up our -- I would say, our common view," he said.
That does not mean there are not differences.
Netanyahu was firm in his belief that there must be a "credible threat of military action" to stop Iran's nuclear program.
The White House, however, continues to prefer to "resolve this diplomatically," according to Obama. "And there's still time to do so."
Israeli President Shimon Peres told ABC News' Jonathan Karl that there is no doubt in his mind that if there was a military strike against Iran, it would be led by the U.S.
When asked if a military strike would be necessary to stop Iran, Peres explained, "The one that can decide that and the one who has the capacity to implement it clearly, is the United States of America. Israel should not go alone when the United States is determined and clear on it."
On the escalating crisis in Syria, Obama said the U.S. is investigating an alleged chemical weapons attack, but that he remains "deeply skeptical" of President Bashar al-Assad's claim that rebels have used such weapons.
"The broader point is, is that once we establish the facts, I have made clear that the use of chemical weapons is a game changer," he said.
But Obama said he would seek to avoid unilateral U.S. action in Syria. Calls for an elevated American presence and potentially even the commitment of U.S. troops have grown, particularly from U.S. Senators Lindsey Graham, R-S.C, and John McCain, R-Ariz.
"I want to make sure that we're working as an international community to deal with this problem because I think it's a world problem, not simply a United States problem or an Israel problem or a Turkish problem," said Obama.
Arriving in Israel Wednesday morning for his first presidential visit to Israel, President Obama sought to reassure Israelis of the strong support from the U.S. as they face increasing threats in the region, declaring "our alliance is eternal."
WATCH President Obama's Remarks with Shimon Peres in Israel:
Standing on the tarmac in Tel Aviv, Obama said it was "no accident" that he chose Israel for the first foreign trip of his second term.
"I see this visit as an opportunity to reaffirm the unbreakable bond between our nations, to restate America's unwavering commitment to Israel's security and to speak directly to the people of Israel and to your neighbors," Obama said.
"We stand together because we share a common story – patriots determined to be a free people in our land, pioneers who forged a nation, heroes who sacrificed to preserve our freedom, and immigrants from every corner of the world who renew constantly our diverse societies," he said.
White House officials have lowered expectations ahead of the president's trip, saying Obama will not present any new peace initiatives and expects no breakthroughs during his four-day stay in the region.
But it was clear the president was happy for some time outside the Washington beltway.
"It's good to get away from Congress," Obama said to Netanyahu in a candid moment captured by television cameras.
The president did not reference the Palestinians by name during his brief remarks, referring to them instead as Israel's "neighbors."
Obama's highly symbolic visit will consist largely of choreographed photo-ops and political tourism as Obama tries to win over the support of the Israeli people. The centerpiece of the trip will be the president's speech to the Israeli people Thursday.
Copyright 2013 ABC News Radio