That's what bind() is for.