Port and socket fix.