Fixing getting server port for Android 2.3.3.
fixing javadoc