Added rtltcp support to offset dialog and fixed refactoring problem