Problems connection to Minecraft servers in the US...

After upgrading my internet to BT Infinity, I have been having huge problems connecting to Minecraft servers hosted in the USA. When eventually I do connect, there is an extreme amount of chat delay (it takes about 20-30 seconds for any chat messages to show up).
I have performed a traceroute and dicovered that BT seems to go through many other servers before even connecting to the server in the USA.
I was informed by many people that they had the same problem, which was easily solved by informing their internet providers which changed a few settings with their servers.
However, if there is anything that I can do, then please inform me on what it is and I will do it.
Thanks,
John.

There have been issues for BT and many other UK ISPs just today.  If it was before that, post ping and tracert information for a sample slow server into a command prompt.  Something like below.
(I'm not sure if that is a sensible server, but looks like the kind of answers I would expect from a US server.)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Windows\System32>ping killion.evolutiongaming.org
Pinging killion.evolutiongaming.org [68.233.235.26] with 32 bytes of data:
Reply from 68.233.235.26: bytes=32 time=117ms TTL=51
Reply from 68.233.235.26: bytes=32 time=116ms TTL=51
Reply from 68.233.235.26: bytes=32 time=117ms TTL=51
Reply from 68.233.235.26: bytes=32 time=118ms TTL=51
Ping statistics for 68.233.235.26:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 116ms, Maximum = 118ms, Average = 117ms
C:\Windows\System32>tracert killion.evolutiongaming.org
Tracing route to killion.evolutiongaming.org [68.233.235.26]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms BTHomeHub.home [192.168.1.254]
2 7 ms 6 ms 6 ms 217.32.147.100
3 7 ms 7 ms 7 ms 217.32.147.126
4 12 ms 12 ms 12 ms 213.120.181.110
5 12 ms 12 ms 12 ms 217.41.169.235
6 12 ms 12 ms 12 ms 217.41.169.109
7 12 ms 12 ms 12 ms 109.159.251.197
8 17 ms 26 ms 23 ms core1-te-0-13-0-12.ilford.ukcore.bt.net [109.159.251.127]
9 19 ms 19 ms 19 ms core1-pos9-1.telehouse.ukcore.bt.net [194.74.65.114]
10 19 ms 18 ms 18 ms t2as1-tge1-4.uk-lon1.eu.bt.net [166.49.211.141]
11 17 ms 20 ms 17 ms t2a1-ge4-0-0.uk-lon1.eu.bt.net [166.49.135.17]
12 22 ms 23 ms 22 ms te0-3-0-6.ccr21.lon01.atlas.cogentco.com [130.117.14.49]
13 96 ms 94 ms 96 ms te0-3-0-5.ccr21.lon13.atlas.cogentco.com [130.117.0.118]
14 94 ms 94 ms 94 ms te0-7-0-0.ccr21.jfk02.atlas.cogentco.com [154.54.84.125]
15 96 ms 95 ms 96 ms te0-0-0-6.ccr21.dca01.atlas.cogentco.com [154.54.5.246]
16 118 ms 118 ms 118 ms te0-1-0-7.ccr21.atl01.atlas.cogentco.com [154.54.24.154]
17 118 ms 118 ms 118 ms te4-2.ccr01.jax01.atlas.cogentco.com [154.54.29.130]
18 118 ms 121 ms 120 ms te3-2.ccr01.mco01.atlas.cogentco.com [154.54.29.138]
19 122 ms 123 ms 124 ms te2-7.ccr01.tpa01.atlas.cogentco.com [154.54.29.213]
20 117 ms 114 ms 116 ms 38.104.150.70
21 118 ms 118 ms 117 ms 69.46.31.126
22 118 ms 118 ms 118 ms 68.233.235.26
Trace complete.

Similar Messages

  • Hey there! well i from india and i m facing problem connecting my debit card to the itune store ,as the very option is not there, can someone guide me how to get it connected , i have a mastercard debit card with me .please help me

    hey there! well i from india and i m facing problem connecting my debit card to the itune store ,as the very option is not there, can someone guide me how to get it connected , i have a mastercard debit card with me .please help me

    if you are signed in to iTunes with your AppleID, click on the AppleID > view account > payment information > enter in your information

  • Problem connecting to Adobe servers

    Hi there and thanx for your help.
    DW CS5 on Windows 7 Ulitmate
    For some reason I cannot connect to the Adobe servers.
    I have perfect connection to the internet with Windows firewall turned off. I managed to connect some time ago but now I cannot. I have logged in on the website of Live.
    Anything specific I can check for?
    Regards,
    Deon

    Yes, I tried. but not connected.Warning message displays:"
    Adobe is a problem connecting to servers. Please check your firewall settings." How to fix it????

  • Weird Airport behaviour when connecting to specific servers on the internet

    Hi Mac-Gurus,
    I have a very strange problem with my MacBook Pro which is a Intel Core 2 Duo, 2.2 GHz, bought in November 2007 running OS X 10.5.5.
    My WLAN router is a Netscreen 5-GT with WPA2 encryption. Airport Extreme (0x168C, 0x87) firmware 1.4.8.0
    When I'm trying to connect to the server 80.239.233.98 on port 3724 (which is a world of warcraft logon-server) the connection cannot be established and the network utility shows receive errors on the Airport Extrme interface en1.
    When I'm using the onboard gigabit ethernet there is no problem connecting to the server. Also there is no problem connecting from a Windows XP Notebook via WLAN to the server.
    I already tried the following things:
    - I used a packet sniffer on my Netscreen-Firewall showing that IP packets are sent to the server 80.239.233.98 on port 3724
    - the packet sniffer on the firewall also showed answers from the IP and that these are forwarded to the MacBook
    - using tcpdump on my MacBook I can see TCP packtes going out, but an answer is never received
    There is no additional firewall blocking traffic on my MacBook, my Netscreen Firewall is not blocking traffic to or from my MacBook.
    When I manually enter my WLAN SSID and password and my Mac reconnects then it is sometimes possible, also only for a very little while, to access the server.
    There seems to be something really buggy with the Airport Extreme Adapter since I can connect from a windows notebook over the same access point and more worse over the built in Ethernet.
    Does someone have the same problem or better a solution for this? I really want to use my WLAN for all applications.
    regards
    Chris

    Hello TrevorMurphy. Welcome to the Apple Discussions!
    Typically when you can connect to the network but not to the Internet, your computer was unable to find the DHCP server in order to obtain its IP address information. In this case, this DHCP server would be provided by your home network's router.
    I suggest trying the following to "refresh" the DHCP-provided IP addresses on your MacBook.
    System Preferences > Network > AirPort > Advanced > TCP/IP > Renew DHCP Lease

  • Problem connecting external sound device to the line

    When I connect my Roland Sound Canvas (external MIDI module connected to the Game/MIDI port) to the line in on the sound card (Audigy2 ZS) but I don't get any sound from the speakers when playing a MIDI file or when recording. When I use sound recorder I can only hear what was recorded during playback. What do I have to do to hear the MIDI audio playing while I'm recording it's
    I didn't have a problem doing this with a SoundBlaster Li've Value card.

    Any standard mini-stereo jack, like on the end of headphones, should go in all the way. That port is meant for use with headphones, and powered speakers that have the same connector. It is not designed for a special short connector. If your mini-stereo to RCA adapter's plug is the same length as the plug on iPod earbuds, it needs to be inserted all the way.
    As a test of the iMac's port, try using a standard set of headphones (or iPod-style earbuds) to see if you get proper sound.

  • Problems connecting to iChat 4 on the server from a computer using iChat 3.

    Is this possible? I am an intern at my school and I am facing this problem. What is happening is we are testing the Leopard server on new iMac 20" and we set up an iChat server. We can log onto the iChat server from the server iMac. But when we attempt to access the 10.5 server from our computers using Tiger (10.4.10), it says that we can not connect to the server. We are using the same user name and config as on the 10.5 server Any ideas?
    This is the error message I receive when I attempt to connect to the iChat 4 10.5 server from a computer using Tiger (10.4.10):
    Could not connect to host "server name here"
    We currently have another iChat server set up on a server using Tiger and set up the 10.5 iChat server in the same way, yet it still will not work.

    I too ran into the problem of iChat on 10.4.x, along with Adium, not succeeding at connecting to the Jabber process on MOSXS v.10.5.1, but simply editing the /etc/jabberd/c2s.xml file to comment out the "gssapi" authentication fixed it up swell. In our case, Active Directory isn't an issue since we're an all-Mac shop.
    Here's the relevant section excerpted from the file:
    <!-- Available authentication mechanisms -->
    <mechanisms>
    <!-- These are the traditional Jabber authentication mechanisms.
    Comment out any that you don't want to be offered to clients.
    Note that if the auth/reg module does not support one of
    these mechanisms, then it will not be offered regardless of
    whether or not it is enabled here.
    Similarly, if <zerok/> is disabled, then zero-knowledge data
    will not be created when a user is registered. -->
    <traditional>
    <plain/>
    <cram-md5/>
    <!--
    <digest/>
    <zerok/>
    -->
    </traditional>
    <!-- SASL authentication mechanisms. Comment out any that you
    don't want to be offered to clients. Again, if the auth/reg
    module does not support one of these mechanisms, then it will
    not be offered. NOTE: Ted Dively commented out the "gssapi" authentication
    method on 11/28/2007 in order to allow Adium and older iChat
    clients to connect to this Jabber server. -->
    <sasl>
    <!-- <gssapi/> -->
    <!--
    <plain/>
    <digest-md5/>
    <anonymous/>
    -->
    </sasl>
    </mechanisms>

  • Is anyone suddenly having Mail problems connecting to Yahoo servers?

    I run two Intel iMacs on my home network.  Both run Snow Leopard.  On my machine that runs 10.6.8, I recently installed several Safari updates. Currently Safari is at Version 5.1.5 (6534.55.3), my wife's iMac Safari is Version 5.1.4.  I began having problems downloading email from the Yahoo server (I have ATT UVerse broadband service).  Internet access seems solid but I started getting constant requests to enter my password for the Yahoo server.  ATT and the alleged Yahoo tech support have been unable and unwilling to help beyond reading the usual scripts.
    My wife's iMac is able to send and receive emails using the Apple Mail client, I can only receive emails using Mail, sending results in an endlessly spinning wheel in the "sent" mailbox.  I have carefully examined the Mail Preferences on my wife's iMac and verified that they are duplicated on mine. For some reason, my Mail cannot send to the Yahoo SMPT server.
    Any suggestions to this somewhat convoluted question?

    I see that you are both having the same issues as myslef. I think I may have a solution for your problem. In your mail accounts section (Mail > Preferences > Accounts) rechange the settings to as follows:
    IMAP (Incoming Mail Server) information:
    Server name: imap.mail.me.com
    SSL Required: Yes
    Port: 993
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    SMTP (outgoing mail server) information:
    Server name: smtp.mail.me.com
    SSL Required: Yes
    Port: 587
    SMTP Authentication Required: Yes
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    Hope this helps!

  • Problem connecting to OIM instance with the Design Console

    Hello,
    I've got questions about how to use the design console to connect to an OIM instance. I'm not the one who has set up the instance and the one who did cannot help me much. He did give me root access on the machine though.
    So first, I'm wondering how do I figure out which port I should connect to. All the doc I can find says that default port is 14000, but I don't understand what it's referring to. I can access to the Web Administration page for Fusion Middleware Control by going to <server_ip>:7001/em. Should I use port 7001? I can figure out that 14000 might not be the correct port because "netstat" does not show anything listening on that port.
    My second question is related to the credentials I should use to login to the console. According to the doc and tutorials I found, the user should be xelsysadm. However the person who has set up the instance does not remember having explicitly set a password for this user. Is it possible to log in to the console using the weblogic admin user?
    I've tried a couple of things, but nothing has worked so far. I always get an error of some some sort. I always get an Invalid Login, except when I log in with the weblogic user and set the following properties in xlconfig.xml:
    ApplicationURL= http://<server_ip>:7001/xlWebApp/loginWorkflowRenderer.do
    java.naming.provider.url= t3://<server_ip>:7001/oim
    With these config, I get this exception:
    javax.naming.NameNotFoundException: While trying to lookup 'ejb.stateful.tcDataBase#com.thortech.xl.ejb.interfaces.tcDataBaseRemote' didn't find subcontext 'stateful'. Resolved 'ejb'
    So that's pretty much where I'm at. I can't find any information that can help me, so any hint would be appreciated.
    Thanks for your time,
    jtellier

    try to login in weblogic console the port will be 7001. if you are able to do this then
    goto->service->security->realim->select user and groups (try to find the correct path)
    create user and then assign administrator groups to this user
    login with this user/password into OIM
    But for design console you don't need any url. if it is configured. go to <IDM_HOME>/designconsole/ and run xlclient.sh
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problems connecting to SSRS using IReportServerCredentials, the request failed with http status 401: unauthorized

    We have a hosted SSRS server and we access it's reports using the reportviewer in an ASP.net application.
    We are getting the error: The request failed with HTTP status 401: Unauthorized. When trying to run one of the reports. I have confirmed that the login details work when logging into the report manager page directly.
    I have implemented an instance of IReportServerCredentials in a separate class (below) and I call it from the page before it tries to access the report. I'm not sure if this is all I need but can't seem to find any other info.
    I have managed to gain access connecting to the external server from my PC and accessed the report, but when I promote the code to production and run it from there on my local PC I get the unauthorized message again: the request failed with http status
    401: unauthorized
    The class:
    [Serializable]
    public sealed class MyReportServerCredentials :
    IReportServerCredentials
    public WindowsIdentity ImpersonationUser
    get
    // Use the default Windows user. Credentials will be
    // provided by the NetworkCredentials property.
    return null;
    public ICredentials NetworkCredentials
    get
    // Read the user information from the Web.config file.
    // By reading the information on demand instead of
    // storing it, the credentials will not be stored in
    // session, reducing the vulnerable surface area to the
    // Web.config file, which can be secured with an ACL.
    // User name
    string userName =
    ConfigurationManager.AppSettings
    ["MyReportViewerUser"];
    if (string.IsNullOrEmpty(userName))
    throw new Exception(
    "Missing user name from web.config file");
    // Password
    string password =
    ConfigurationManager.AppSettings
    ["MyReportViewerPassword"];
    if (string.IsNullOrEmpty(password))
    throw new Exception(
    "Missing password from web.config file");
    // Domain
    string domain =
    ConfigurationManager.AppSettings
    ["MyReportViewerDomain"];
    return new NetworkCredential(userName, password);
    public bool GetFormsCredentials(out Cookie authCookie,
    out string userName, out string password,
    out string authority)
    authCookie = null;
    userName = null;
    password = null;
    authority = null;
    // Not using form credentials
    return false;
    The call to the class, just before the report is run:
    if (GetConnection.GetConnectionString().ToString().Contains("IP of external server removed"))
    invoiceviewer.ServerReport.ReportServerCredentials = new MyReportServerCredentials();
    We have tried so many things here, we don't even care whether the server authenticates or not but it appears to be as standard. Our hosting company has also drawn a blank and changed so many settings to no ava

    Hi Nasa1999,
    According to your description, you are getting the error: The request failed with HTTP status 401: Unauthorized when you access the report using the ReportViewer in an ASP.net application.
    Regarding the 401 error, it could cause by the Service Principal Name(SPN) for the account the Reporting Services is running under hasn’t been registered when the Reporting Services is configured to use Kerberos authentication. So in your scenario,
    please check if you are using Kerberos authentication. If that is a case, please make sure SPN is configured correctly. For more information, please refer to the similar thread:
    The request failed with HTTP status 401: Unauthorized. in SSRS.
    If issue persists, please check the Reporting Service error log (default location: %programfiles%\Microsoft SQL Server\<SQL Server Instance>\Reporting Services\LogFiles) around the time that the error message thrown out.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • TS1398 My new Iphone 5 is in wi-fi mode but not connecting to my home network.I am certain that it is not my router since my wifes new Iphone 5 has no problem connecting.I dont get to the point of entering my password as a pop up tells me "uable to join..

    My new IPhone 5 does not pick up my home network.My wife's new Iphone 5 has no such issue.I get a message "unable to connect' although the correct network appears.Never get to the prompt screen asking for my network password.Keeps trying to connect but never does.Have switched on /off button and turnesd off phone back on several times.

    Settings > General > Reset > Reset Network Settings
    Power cycle the router.

  • Problem Connecting to SFTP server using the SFTP Transport in OSB 11gr1

    Hi,
    I have a proxy service that polls for files from an SFTP server. But there seems to be some problem with the handshake between the both.
    Below is the error that is logged:
    <Error> <WliSbTransports> <tshvm03x> <OSB_AdminServer1a> <pool-14-thread-1> <weblogic> <> <11d1def534ea1be0:-2e6486ae:130dafcd1ef:-8000-0000000000615cf8> <1309358912109> <BEA-381602> <Error encountered while polling the resource for the service endpoint ProxyService$XXWMMPROJECTS$DF155_INBOUND_ASN$Proxy_Services$PS_PO_DF002_SFTP_01: com.bea.wli.sb.transports.TransportException
    com.bea.wli.sb.transports.TransportException
    at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.execute(SFTPWorkPartitioningAgent.java:125)
    at com.bea.wli.sb.transports.poller.TransportTimerListener.run(TransportTimerListener.java:74)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused By: java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
    at java.util.StringTokenizer.nextElement(StringTokenizer.java:390)
    at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.validateKnownHosts(KnownHostVerifier.java:65)
    at com.bea.wli.sb.transports.sftp.client.SFTPClient.authenticate(SFTPClient.java:104)
    at com.bea.wli.sb.transports.sftp.connector.SFTPResource.<init>(SFTPResource.java:77)
    at com.bea.wli.sb.transports.sftp.resource.SFTPUtils.createSFTPResource(SFTPUtils.java:170)
    at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.getSftpResource(SFTPWorkPartitioningAgent.java:148)
    at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.execute(SFTPWorkPartitioningAgent.java:58)
    at com.bea.wli.sb.transports.poller.TransportTimerListener.run(TransportTimerListener.java:74)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    >
    I could see the same error mentioned in a couple of posts; but couldn't find any resolution to it. Any Pointers on this would really help.
    Settings Done:
    I have configured a service key provider.
    Placed the Known_hosts file at Domain_Home/config/osb/transports/sftp with all the necessary details.
    Thanks,
    Manoj

    Hi Manoj,
    It may be an issue with Known_hosts file. Make sure that it is properly formed and it has no space/newline character at the starting of the file.
    Regards,
    Anuj

  • Problem connecting to Scitex Servers!!!

    Never been a big fan of Scitex, but I have no choice.
    I recently moved to 10.5, can see all computers, printer, everything under the sun, but cannot connect to a Scitex Server. I'll take any suggestions given to me.

    Having the same issue here. 10.5 on ProMac 2.66 Duo 2gb ram 250gb hd. Can't connect with windows 2003 server or Scitex Brisque. What gives I can use SMB to connect to the Windows 2003 Server but AFP is a wash, no joy.

  • There was a problem connecting to the server error

    HELP!
    Right, so I upgraded to Lion on my MacBook Pro last night, and have spasmodically gotten the following error:
    There was a problem connecting to the server "me409fs02"
    followed by:
    There was a problem connecting to server "me35syd08"
    Now the weird thing is, me409fs02 and me35syd08 were servers at a company I used to work for 2 years ago. I have no idea why my computer is suddenly trying to log in to these old servers, or how to make it stop.
    Here's a screen shot of what's going on in the console at the exact moment that the errors occur:
    This is turning out to be a gargantuan pain in the butt and I'd really appreciate any help I can get.
    Thanks in advance,
    Brent.

    G'day mate,
    Is this only happening in one user account?  If so, then you should look into the library folder of your user account and your login items (through "Users & Groups Preferences"). 
    Check for any LaunchAgents or LaunchDaemons that could be attempting to connect to the server.
    If it's happening for every user, then also check the Library folder at the root of your hard drive (LaunchAgents, LaunchDaemons and StartupItems).
    Cheers,
    Rodney

  • WRT300N - Problem Connecting With Desktop

    I recently reset my HP desktop to the factory default after experiencing a whole slew of technical issues I had neither intention nor time to deal with. As a result of the reset, I lost connectivity to my host computer which runs a WRT300N Wireless Router. This wasn't a suprise, but I then ran into a few more problems in trying to reconnect. The first issue I experienced was that on my client PC, it wouldn't detect the Wireless PCI Card I previously installed before the factory reset. This was a quick fix, as upon opening the tower, I discovered the card had become disconnected. I connected the card and ran the installation CD successfully. Since the installation program contains a service to select the wireless network you wish to connect to, I did so, and followed the on screen directions to reset my computer. Unfortunately, I was still disconnected from the intended wireless network upon opening up Internet Explorer. I ran the Wirless Zero Configuration service on my computer so I could deal with the wireless networks on more familiar ground. I was completely dumbfounded to what I saw there. It detected the wireless network, but it gives all the wrong information about it. The SSID resembles the actual SSID, but it is not the same. Also, it says that the wireless network is unsecured when, in actuality, is it secured with a WEP Key. I am stumped. A PSP and HP laptop have absolutely no problem connecting  to this network. The problem seems to soley exist with my HP desktop. Any help at all would be great. Thank you.

    Hi,
    Have you tried to install latest drivers for the wireless PCI card.
    Download those from www.linksys.com/download from a computer already online.
    Transfer those drivers to computer with the wireless PCI card, using a flash drive or by burning a disk.
    Uninstall the old drivers from desktop, reboot the desktop computer.
    Install the new drivers and again reboot the desktop computer.
    Now check for available wireless networks and try to connect to wireless network.

  • Problem connecting to MySQL DB

    I am having a problem connecting to my database with the most basic java code.
    The code I have been using is at bottom of message. It compiles fine, and runs ok too, but does not connect, it gets the Exception and displays the "Canot connect ..." message. From the command line I can use the mysql client with the same user and pass I am using in the program with no problems. Any ideas on something else that might be causing it? I have already downloaded driver and include the paths in the CLASSPATH. Thank you for any help!
    CODE:
    import java.sql.*;
    public class Connect
    public static void main (String[] args)
    Connection conn = null;
    try
    String userName = "testuser";
    String password = "testpass";
    String url = "jdbc:mysql://localhost/test";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url, userName, password);
    System.out.println ("Database connection established");
    catch (Exception e)
    System.err.println ("Cannot connect to database server");
    finally
    if (conn != null)
    try
    conn.close ();
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors */ }

    Thank you so much.
    I tried searching for a while without finding any answers and right after trying printStackTrace the problem becomes so clear. It was a host problem, after adding the appropriate privileges I was able to connect.
    I think printStackTrace will come in handy for any debugging while developing applications.
    Thanks again!

Maybe you are looking for