We have a linux machine on Digital Ocean and tomcat is running overthere. We want to connect remote MSSQL server Database (which is on our local windows machine) but it's not connecting.
We tried ping command and telnet command on port 1433 as well..nothing is connecting to my windows machine.
Please let me know what we are missing or what do we need to configure.
Any help would be appreciated. Thanks in advance.
You will have to configure your local machine as a server, accessible from the internet. But you will need to provide protection for your database server.
Related
My OS is Windows 10. I'm using VmWare to run MacOs as a virtual machine. On my host I have web development server running on localhost:44399. I have Nat connection in the settings. I've tried a lot of ways to establish the connection but nothing helped. Already modified the hosts file and so on but I can't access localhost:44399 from MacOs guest. Can anyone help me? Here are the app settings
Instead of localhost, you need put your host IP address. localhost on your guest pointing to your guest no host machine.
I have a bit of a bizarre problem. I have a Hyper-V VM and I cannot connect to it via IP address on the host computer.
I intend to use it as an SQL server to host a database for a website while I test it, and the first step I can see in this endeavour is to make sure the IP addresses work externally.
Other PCs on the LAN appear to be able to connect just fine via the IP address on Remote Desktop. I cannot do so. I also cannot connect through SQL Management Studio (named pipes or TCP/IP). Although named pipes gives an error relating to being denied access as opposed to IPs which are just not found.
I have tried pinging both ways:
VM => Host : Always gives a "Destination Host Unreachable" error
Host => VM: Always gives a "Request Timed Out" error
As for netstat -a -n, I can see that the VM is listening to 3389 (default Hyper V port, which makes sense).
Regarding Firewalls, all have been turned off on all machines. I can tell that the firewall is not the issue.
If you need any more information to help me to diagnose and treat the problem, please ask me as I would like to get this sorted as quickly as possible.
Thanks a lot in advance.
Which windows server version do you use?
Windows Server 2016 blocks insecure RDP connections (https://support.microsoft.com/en-us/help/4295591/credssp-encryption-oracle-remediation-error-when-to-rdp-to-azure-vm).
Since RDP uses CredSSP you have to install the current Windows Patches.
Do you can ping the DNS server by IP address from your VM?
Is ICMP (ICMP = the thing you need for ping) on your host enabled?
Here is a Checklist for ICMP:
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc749323(v=ws.10)
Solved,
Just switched to another physical computer and it was fine.
My ubuntu machine name is machine. I am able to do successfully ping machine, but when I do ping machine.local, it doesn't resolve machine.local and gives message
ping: machine.local: Name or service not known
How should I fix this?
Thnaks.
Configure and start MDNS service or add appropriate records to your DNS server or add an antry to your /etc/hosts file
Apart from what #mikhail-zakharov said, I found out that apparently, avahi service was down and I needed to restart. Article at smallbusiness.chron.com/resolving-local-ubuntu-38861.html and https://access.redhat.com/discussions/3258021.
We have an hyper-v machine in our DMZ with an Ubuntu machine on it. SonarQube is installed on the VM. When we try to access it from inside the network by IP there is nothing wrong and it works fine. We have setup a firewall route to forward all traffic from the internet to the VM. The forwarder as we setup is correct as we used it multiple times with other servers and works fine. The VM has 1 NIC with the internal IP on it. Is there something we are missing? If you need any more information please let me know. Thanks in advanced.
I have found the issue.
In the hosts file there was no local host setup.
From internal we connected by ip so there was no issue. The files were setup to connect to localhost so it did not know where to go. thanks for the support.
I have Meteor running on a local virtual machine on Windows which is accessible using the IP address of 192.168.56.111
When I use Robomongo, I use this IP address and point it to port 3001 and I an unable to connect.
Should I expect it to connect? If not, is there anything I need to do to get it to connect?
Setup SSH server on Windows and then simply create SSH tunnel:
ssh -L27018:192.168.56.111:3001 user#host
After that open Robomongo and connect to localhost:27018. That's it!
This technique I'm using successfully to connect to production database.
With meteor the database that runs is bound to 127.0.0.1, so it will not be accessible on other IPs. I think this was done for a security reason, though not sure.
You should use the local IP/127.0.0.1 instead of 192.168.56.11.