PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 2, 2022

[FIXED] How to access localhost on VMware Mac as Guest and Win10 as Host

 July 02, 2022     mamp, server, virtual-machine, virtualization, xampp     No comments   

Issue

If you don't understand the question could you please let me know in the comment instead of killing the question?

Main Host System: Windows 10 with XAMPP Server Running

Virtualization App: VMware® Workstation 16 Player

Guest OS on VM: macOS BigSur 11.6.2 (without xampp server, but network is bridged)

localhost address on Win10: 127.0.0.1

local ip (as in Router) of Win10: 192.168.0. 106

enter image description here

I want to open my database in SequelPro, but those IPs are not working, Please help me what to fill in here: enter image description here


Solution

Got it working.

NOTE: The following method is NOT Secure in a public web environment. But it's fine for the local development environment.

First, Added MySQL Database user with all privileges:

DO THIS ONLY. DO NOT MESS WITH ANYTHING ELSE to Prevent DB Curruption

 Username (Any): [blank]

 Host Name (Any): %

 Password (No Password): [blank]

 Grant All Privileges with CheckBox. // This is Must.

enter image description here


Got my Host Device IP address from the Router Connected Device List. These IPs could be dynamic or static. in my case, it is 192.168.0.113 We need this IP Address because "localhost" or "127.0.0.1" won't work in VMWare Guest OS with Bridged Network. enter image description here


SequelPro in Guest OS: macOS

enter image description here



Answered By - Hardik
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing