How to call a remote localhost?

Posted on 2007-07-21
Last Modified: 2013-12-12
I have found a program that allows me to convert a Wordpress database (Mysql, on server 1) to a Drupal Database (Mysql (server 2). apparently this program is meant to reside on my local Windows station and call both databases from there.
But both databases are on each server at the localhost. What should the path to reach each look like. Or is this an impossibility at all, can one not call a 'remote localhost'?
Should you want to know more about the program, it resides here:
Question by:TheoRichel
    LVL 11

    Accepted Solution

    localhost is the local address of any computer, it is equivalent to the IP address that each computer recognizes as its local address.
    If you want to reach a database on a remote computer, you will need the following:
    1. the IP address of the remote computer (with which you will replace localhost in your connection string)
    2. the port on which the MySQL server can be reached on that computer (3306 by default but it can be something else)
    3. that any firewall/proxy that resides between your computer and the remote computer allows your computer to talk to the remote computer using that port

    If summary, if you have the control on all the computers, for example if the reside in your intranet, you will be able to open those routes without to much problems. On the other side, if any of the computers is hosted by an ASV, you should immediately forget it as they will never let you do that.

    Author Comment

    Thank you, that seems clear, though I do not know what ASV stands for.
    LVL 20

    Expert Comment

    by:Muhammad Wasif
    Addition to elfe69's suggestions, you have grant permissions on MySQL user to connect the database from remote host.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now