"It doesn't work" unfortunately isn't that much of an information. Unless the Exception is silently suppressed there's a rather helpful IOException telling you the issue. Most likely either a no route to host meaning the dns resolution failed or a connection refused which often means the firewall is blocking (unless the server isn't running at all).
So, to help us to help you to figure out the issue it's best to show us the error message (please post text output as text rather than taking a screenshot as it's hard to read on a mobile device).
I'm sure one here can spot the issue and give you some advice.
Yes, I looked in the console. The only message I seem to be able to get out of it goes along the lines of "could not connnect to server." It doesn't include any other information about where in the protocol the process failed.