Localhost is simply the name given to the local server concept. So you can turn your personal computer into a server computer with some programs. As you may encounter while playing your htmlserver with local hosting, you can test your web applications on your web sites. The server software is usually run as a web server on personal computers.; It refers only to a personal computer limited service. Just like how Webhost is open all over the world, local hosting is open only to the authorized user.

How to login http://localhost/ server?

You can reach from your web browser by typing or http://localhost:80/. It is impossible for your computer to access these pages without installing a server software. In the following topics, you will learn how to do this.

With a variety of software installed on your ip, your computer can be turned into a local server. You can publish your internet site on it. You can install Php and Mysql based scripts, develop apps, credit card payment back-ends, gateways and more. If you are a developer, you can test scripts that you write. If you are a designer, you can see how your website looks. Your computer is a test method used briefly before the real world for websites.

Credit card payment back-end development on localhost

You can simulate and test your software like a real payment transaction by creating a virtual credit card payment system on localhost. As an example, Paytr virtual pos integration with PHP has been added in the code below. Another method is to use an external credit card generator app. You can customize it for yourself. The required parameters are sent to paytr, and it opens a payment screen in an iframe. You are creating a notification_url page in Paytr settings.

Order confirmation or cancellation is made on that page. A hash is generated with the incoming credit card post values, and if the hash value from the post is not equal, a bad hash error occurs. If it is, the process continues. If it is successful, the db queries are made. If it is successful, it goes to the specified payment_payment_failure.php page I used the pdo library in the .notification url page.

$oid = rand(1.99999);
$merchant_id = 'merchcantid';
$merchant_key = 'merchant key';
$merchant_salt = 'saltkey';
$email = 'email';
$payment_amount = '999'; // For 9.99, 9.99 * 100 = 999 should be sent.
$merchant_oid = $oid; // different id for each request
$user_name = 'address line';
$user_address = 'address';
$user_phone = 'phone';
$merchant_ok_url = 'odeme_basarili.php'; // if the payment is successful
$merchant_fail_url = 'payment_fail.php''; // the page to return if the payment is unsuccessful
 $user_basket = base64_encode(json_encode(array(
        array('product name' , '9.90', '3'), // 1st item (Product Name - Unit Price - Quantity ) ));
if( isset( $_SERVER["HTTP_CLIENT_IP"] ) ) {
        $ip = $_SERVER["HTTP_CLIENT_IP"];
    } elseif( isset( $_SERVER["HTTP_X_FORWARDED_FOR"] ) ) {
        $ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
    } else {
        $ip = $_SERVER["REMOTE_ADDR"]; }
 $user_ip = $ip;
$timeout_limit = "30";
$debug_on = 1; // debug mode
$test_mode = 0; // 1 for test mode
$no_installment = 0; // 0 if no installment
$max_installment = 0;

How can I Hosting on my pc?

Local hosting is closed on normal computers, so some programs need to be installed to get server properties in order to broadcast it. It is very easy to do this because the server operating systems are ready for it, but in end-user operating systems this is a bit tricky. Some software can do this easily, so let's have a look at them.

Which software will enable our computer's localhost? What software does the localhost wiki activate?

The programs mentioned above activate localed hosts of your computer. Php and Mysql are installed and your computer is ready to broadcast. It is for you to run the dynamic web pages of PHP, MySQL and PhpMyAdmin. While we can run static html or php pages on http://localhost/ without needing anything, we can not run dynamic web pages with php script like this.

Can anyone access from us?

We can answer this in the form of yes and no. Let me explain that nobody can see an internet site you posted on l.h., but if you set your modem's external ip to static ip and set external requests to redirect to local-host, you can open your site on your personel computer in the outside world.

Index for localhost stack

Connection Status

Web Browser: CCBot/2.0 (
Language: en-US,en;q=0.5
IP Address:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Date: 2023/03/26 00:25:43

Our Helpful Projects

Apart from this web project, if you would like to discover and contribute to our many different projects, please check the list below.

Contact Us - Privacy Policy