public static int getScriptEditorPort() {
		IPreferenceStore prefs = Activator.getDefault().getPreferenceStore();
		try {
			return Integer.parseInt(prefs.getString(GHIDRA_SCRIPT_EDITOR_PORT_NUMBER));
		}
		catch (NumberFormatException e) {
			return -1;
		}
	}
Gets the port used for script editor.

@return The port used for script editor.  Will return -1 if the port is not set.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidrascripteditor/preferences/GhidraScriptEditorPreferences.java