fixed ExampleIMSession to use localhost