VB.Net Unable to connect SQL from Local IP and Public IP
Posted by: xhbx (---.singnet.com.sg)
Date: May 09, 2019 04:00PM

Hi All

I could like to know how to let my VB.net application connect to sql server from public and local IP?


if use Localhost my coding no issue but when using 192.168.1.2 which is my PC or my public IP it have a error message


host xxx.xxx.xxx.xxx is not allowed to connect to this mysql server


From web browser I can using either localhost or 192.168.1.2 or my public IP no issue


Anyone have any idea how to solve?

Options: ReplyQuote
Re: VB.Net Unable to connect SQL from Local IP and Public IP
Posted by: RiggsFolly (Moderator)
Date: May 09, 2019 04:56PM

Hi

Are you using WAMPServer? If so please answer all these questions before asking a question

Read and answer all these questions

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: VB.Net Unable to connect SQL from Local IP and Public IP
Posted by: Otomatic (Moderator)
Date: May 09, 2019 06:58PM

Hi,

In any case, in order to be able to connect to MySQL (or MariaDcool smiley, it is imperative that the three entities from which you want to connect (user, from host, password) are known to MySQL, so that this user account has been registered in MySQL. The "from host" can be a host name or an IP.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.