Check port script