user: Problem: The 31-year-old, capped eight times by the Republic of Ireland, was a free agent after playing in Denmark for FC Copenhagen.
Foley has made a total of 388 appearances in English football for Luton, Wolves and Blackpool.
He comes in following the departure of fellow full-back Jonathan Parr.
The move reunites him with Ipswich manager Mick McCarthy, who signed Foley for Wolves in 2007.
Meanwhile, Ipswich have terminated the contract of winger Tommy Oar after the 24-year-old Australian found it "difficult to settle into life in England".
Oar made nine appearances for Town and scored one goal.
Find all the latest football transfers on our dedicated page.
What was that article about?

A: Ipswich Town have signed former Wolves defender Kevin Foley on a contract until the end of the season, subject to international clearance.


Stirling farmer Martyn Steedman bought the Sea King helicopter in an online MoD auction for £7,000 and decided turn it into accommodation.
It will cater for a family of five and will have a dining area in the cockpit, a mini kitchen and an en-suite shower.
The helicopter retired from active service in 1994 and was used in naval training until 2002.
The idea for the conversion came to Mr Steedman during the Sea Kings' final fly past over Stirling earlier this year, which marked the end of active service for the entire fleet.
He said: "We couldn't bear to see these much-loved helicopters go on the scrapheap and thought 'why not give one a new life in the country?'
The 17m (56ft) long Sea King ZA127 aircraft was driven 320 miles by road from Grantham, Lincolnshire, to Mains Farm Wigwams, Thornhill, Stirlingshire, on Tuesday before a crane lifted it into position at the campsite.

Sum: A search-and-rescue helicopter retired from Navy missions is to be turned into a holiday home.


Q: Team Sky claimed on Monday their computers had been hacked by critics convinced 30-year-old Froome is using performance-enhancing drugs.
Briton Froome said he "understood" why there are doubts because of the "history of the sport".
Tuesday's stunning ride increased his overall lead to nearly three minutes.
Froome plans to be independently tested between the Tour's finish and the Vuelta a Espana, which begins on 22 August, to try to determine what makes him such an exceptional athlete.
"I do understand where the questions are coming from, the history of the sport and the people before me who have won the Tour," said Froome.
"I am sympathetic, but at the same time there needs to be a certain level of respect also."
Media playback is not supported on this device
Froome has been subjected to sustained scrutiny since his Tour win in 2013, with some sceptics using power data to justify their case against him.
"It doesn't make me angry," added Froome. "It would be a different story if I had something to hide.
"I know I've worked extremely hard to be in this position."
Froome said he has tried to be a spokesman for clean cycling, suggesting night-time testing and raising concerns to the sport's governing bodies.
He said: "What else is a clean rider supposed to do?"
Froome added that critics on social media who try to interpret power data are "clowns", adding that it means nothing without context.
Team Sky boss Sir Dave Brailsford had said even before Froome's 10th-stage win - the fifth stage victory of his career - he was braced for more questions over doping.
"It's part of the game, isn't it?" he added. "If he does well on Tuesday, the rest of the Tour it's: 'How do you know he's not doping?'
"The question of how to prove a negative is always going to be a difficult one.
"I used to worry about it a lot more, but I don't any more. It's part of the game. Just try to be honest, tell the truth, be open."
The Team Sky rider is now well positioned to secure a second win after powering away from the field on the first major climb of this year's race to open up a substantial lead at the head of the standings.

A: Tour de France leader Chris Froome wants more respect after again stressing he is a "clean rider" following a dominant stage-10 victory.


Text: The City Varieties, in Swan Street, Leeds, was the home to BBC series The Good Old Days from 1953 until 1983.
Notable acts to have performed there over the years include Harry Houdini, Eartha Kitt, Les Dawson and John Inman.
The venue will open its doors from noon until 16:00 BST for visitors to explore and take part in various activities.
Its managers said the venue, which is believed to be the country's longest-serving music hall, began life as a room above a pub to provide entertainment to the working classes.
"Affluent" sister venue The Grand Theatre, used to serve the higher classes, they said.
Escapologist Houdini and a woman who "hypnotised alligators" were among some of the "weird and wonderful acts" to grace the Varieties' stage.
summary:

assistant: A historic theatre said to be the country's longest-running music hall is celebrating its 150th anniversary with a special open day.