• after setting up my wordpress website on local computer, how to make it accessible to the public user and public user is able to preview the wordpress website locally built on my personal computer? pros and cons?
    onlineimageresize com aishangCopy1mp3image683x1024

    after setting up my wordpress website on local computer, how to make it accessible to the public user and public user is able to preview the wordpress website locally built on my personal computer? pros and cons?

    Making your locally-built WordPress site accessible to the public is a common next step for sharing your work or getting client feedback. There are two main paths you can take: a temporary solution using a tunnel for quick previews, or a permanent solution by migrating to a live hosting provider.

    Here is a comparison of both methods to help you decide.

    Aspect🚀 Method 1: Temporary Access (via “Tunneling”)🌐 Method 2: Permanent Access (via Migration)
    What It IsExposing your local computer to the internet using a tool (e.g., ngrok) to get a temporary public URL .Moving your site’s files and database to a paid hosting provider (e.g., Bluehost, Kinsta) to go live permanently .
    Best ForQuick client previews, testing plugins that need a public URL (like Jetpack), or gathering feedback on a work-in-progress .Launching the final website, making it available 24/7 to the public, and getting your own domain name (e.g., www.yoursite.com) .
    ProsFree/Low Cost: Many tools offer a free tier .
    Immediate: No need to buy hosting or a domain upfront.
    Convenient: You continue working in your familiar local environment.
    Professional: Provides a custom domain, better speed, and uptime .
    Always Online: Your computer doesn’t need to stay on .
    Secure: Hosting providers offer robust security and backups.
    ConsComputer Must Be On: Your PC must be running and awake for anyone to access the site .
    Temporary & Slow: The URL is often a random string of letters and can be slow .
    Security Risk: You are opening your local computer to the internet.
    Costs Money: You’ll need to pay for a hosting plan and a domain name .
    More Complex: Requires a few technical steps to migrate the site, though many hosts offer one-click migrations .

    🛠️ Option 1: The Temporary Tunnel (For Previewing)

    This is the best way to show a work-in-progress without buying anything. Tools like ngrok or Localtunnel create a secure tunnel to your computer .

    How to do it (using ngrok as an example):

    1. Start your local WordPress site (ensure XAMPP/MAMP/Local is running).
    2. Download and run ngrok from their website.
    3. Run the command in your terminal: ngrok http 80 (use port 8080 if that’s what your local site uses) .
    4. Share the URL ngrok gives you (e.g., https://abc123.ngrok.io). Anyone with this link can see your site.

    ⚠️ A Critical Step for WordPress: Because your site’s internal links and images are hardcoded to http://localhost, clicking on them will break for remote users . To fix this, you must update your site’s URL. Add these two lines to your wp-config.php file (replace the URL with the one from ngrok):

    define( 'WP_HOME', 'https://your-ngrok-url.ngrok.io' );
    define( 'WP_SITEURL', 'https://your-ngrok-url.ngrok.io' );

    After you are done previewing, remember to remove these lines to work locally again .

    📦 Option 2: The Permanent Migration (For Going Live)

    When you are ready to launch the final site, you should move it to a live server. This is the standard professional process.

    How to do it (The 30,000-foot view):

    1. Buy a domain and hosting (e.g., from a provider like DreamHost, Kinsta, or any popular WordPress host) .
    2. Export your local database using phpMyAdmin (this creates a .sql file) .
    3. Upload your WordPress files to the live server using an FTP client like FileZilla .
    4. Create a new database on your live server (via your hosting control panel) and import your .sql file into it .
    5. Update your wp-config.php file with the live server’s database name, username, and password .
    6. Update your site’s URLs from http://localhost to http://yourdomain.com. You can do this in phpMyAdmin by changing the siteurl and home fields in the wp_options table .

    Pro Tip: For a simpler migration, look for a host that offers a free migration plugin (like Jetpack’s migration tool or a host-specific plugin) to handle the heavy lifting for you .

    💡 Final Verdict

    • For a quick, free preview that your client can look at for a day or two? Use ngrok (Option 1). It’s fast and easy.
    • To launch a real website that people can visit anytime? Migrate to a host (Option 2). It’s the only professional way to do it .

    If you decide to go with the permanent migration and need help picking a hosting provider or a plugin to simplify the process, feel free to ask


    Comment

    We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy .
    Posting comment on "after setting up my wordpress website on local computer, how to make it accessible to the public user and public user is able to preview the wordpress website locally built on my personal computer? pros and cons?"
    1 2 3 4 5
    Thank you for your comment.

    There is no comment for this post currently,
    be the first one to write a comment.

    onlineimageresize com aishangCopy1mp3image683x1024

    Author Rank: 10
    Author's Name: Guest User
    User ID: 10000009
    Number of posts published by user: 8

    Annie's Wonderland
    最浪漫的事
    小城故事
    onlineimageresize com music cover1
    Buon Giorno Principessa

    Related     Posts
    No image
    04/24/2026  |  
    how to host google font locally for my wordpress online website

    Hosting Google Fonts locally on your WordPress site is an excellent way to boost your site’s performance, improve privacy compliance (like GDPR), and give you more control over
    » » » »

    No image
    04/22/2026  |  
    use oracle cloud free instance to set up a wordpress website step by step instruction

    Setting up a WordPress website on Oracle Cloud’s free tier is a great way to build a site with no upfront costs. The process involves setting up your
    » » » »

    No image
    04/22/2026  |  
    how to set up wordpress website on local computer

    Of course! Setting up a WordPress website on your local computer is an excellent way to learn, test themes/plugins, or build a site before it goes live. This
    » » » »

    03/21/2022  |  
    在甲骨文 Oracle Cloud 上搭建永久免费 WordPress 网站

    Key tasks include how to: Free Tier: Install WordPress on an Ubuntu Instance https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/wp-on-ubuntu/01-summary.htm

    No image
    01/21/2021  |  
    模板问题

    参考 外观–》 自定义–》主页设置–》主页名 主页名 -> Setting -> CONTENT LAYOUT -> 100% Full Width The Menus Screen enables the user to create a custom menu (also known as a
    » » » »

    No image
    12/10/2020  |  
    有关主机地区的问题

    在使用云服务器的时候 一开始会有主机地区选择 有些同学可能会选择主机地区在国内 觉得自己的网站对象是国内用户 或者有些同学不是使用云服务器 是选择使用我们大家经常用的主机托管公司 主机提供商很多了 像Blue Host, Hostgator, GoDaddy等等 界面友好 不像谷歌云和阿里云这样子我们需要自己打入LINUX的指令 在选择主机地区的时候 如果你是打算搭建WordPress网站 最好主机地区不要选择在国内大陆 虽然WordPress是开源的 在国内使用访问登录没有问题 但是因为你所选择的WordPress主题或者插件可能会用到Google的产品 像Google Font, Google Map等等 或者会用到其他被禁的产品 我不知道JQuery是不是也在国内禁用 JQuery是大多数WordPress主题都会用到的JavaScript代码库 如果你的主机放在国内 你所选择的WordPress主题需要的这些的文件和程序可能拿取不到
    » » » »

    No image
    12/08/2020  |  
    使用all in one wp migration不可以导出网站

    Introduced in 2013 and used by over 60 million websites, All-in-One WP Migration is verifiably one of WordPress’ most trusted and utilized plugins for moving websites with absolute
    » » » »

    No image
    12/07/2020  |  
    想用all in one wp migration迁移WordPPress网站 文件大于512M

    When building websites, we tend to create a site locally or on a development server and then migrate the site on the client’s server when done. The All
    » » » »

    No image
    12/07/2020  |  
    谷歌云搭建的WordPress登录密码忘记了 收不到邮件恢复密码

    Why Add an Admin User to the WordPress Database via MySQL?We once ran into an issue where a user’s site was hacked, and their admin account was deleted
    » » » »

    No image
    12/07/2020  |  
    Elementor在使用过程中有问题

    Create a WebsiteDesign Your FuturePower your vision with Elementor to build, manage and host stunning websites!We’ve got you covered from A-to-Z with the #1 website platform for WordPress.
    » » » »

    No image
    12/07/2020  |  
    Screen Options不可以下拉

    Screen Options is a fly down menu button located on the top right corner of some pages in your WordPress admin area. When clicked, Screen Options menu shows
    » » » »

    No image
    12/07/2020  |  
    阿里云分国际和国内版?

    Alibaba Cloud is more of an International Entity subsidiary of Alibaba Group which is still in the progress of porting of all the services from Aliyun with enhancements.
    » » » »

    No image
    12/07/2020  |  
    SSL 安全证书

    DescriptionReally Simple SSL will automatically configure your website to use SSL to its fullest potential. Use extra security features to protect your website, and use our server health
    » » » »

    12/06/2020  |  
    谷歌云 – 用完300元试用赠金或者没有用完?

    Google Cloud Platform (GCP), offered by Google, is a suite of cloud computing services that provides a series of modular cloud services including computing, data storage, data analytics,
    » » » »

    Categories: WordPress
    Previous post in all categories:
    <<
    Next post in all categories:
    >>