Set some constants to final
Corrected position with multiple LANAdapters
Removed useless part of code