I am trying to setup a DocumentDB emulator on my Win7 local, then found out it only supports Windows 10.
then I installed the emulator on Windows10 VirtualBox, I have no problem seeing the Emulator page using localhost.
however, when I try to connect from my Win7 local box to the emulator on Win10 virtualbox, I can't get a connection (either from browser pointing to https://localhost:8081/... or from code).
Is the DocumentDB Emulator only accessible from the machine running it?
i turned off windows firewall on Win10
I ran Emulator on port 443 on Win10
Virtualbox network config: NAT Port forwarding 8081 to 443 (i have similar config for SSH from Win7 to Linux VB that works)
thanks in advance
I had the same problem, this is how I succeeded.
First, install DocumentDBEmulatorCertificate from your VM to the host, as a trusted certificate. Here you can find how to export it.
Then forward a port to 8081 with netsh:
netsh interface portproxy add v4tov4 listenport=64000 connectport=8081 connectaddress=127.0.0.1
Related
I have been trying to run my app on android emulator and send requests to my node js local host but localhost:3000 is not working in emulator i also tried 10.0.2.2 and 10.0.3.2 im using Andy android Emulator and my server is up on windows localhost:3000 works on windows but nothing works in the emulator what should i do?
Did you try this ?
10.0.2.2:3000
this should work.
if this is not working check that you're server is up and running on port 3000
Finally i found the solution:
first you should run ipconfig command than there is an ip in one of of the adapters that it bring ,in front of the ipv4 ,mine was 192.168.1.4 you should that ip with :3000 then you can access your local host.
I was using Nox app player
I installed Gitlab on a VMWare VM, using NAT, where the VM is running Ubuntu 16.04. Everything installed OK, but I can't access it via the browser. It says I need to configure an external URL. I only need to access the VM from my Mac (where the VM is running). How do I configure a URL so I can access it from my Mac?
Thanks!
When the VM is running locally on the Mac in NAT network config, this means that the ports are available directly on the Mac IP. If you only need to access it from the Mac itself, you could access the application at the port via the loopback (local only) IP 127.0.0.1
If gitlab is running on port 80 in the VM, on the Mac you should be able to access with http://127.0.0.1
If this doesn't work, there are a few options:
Confirm no other service/webserver is running on port 80 locally on the Mac. If there is, you should change the port of the gitlab webserver in your VM, and access using http://127.0.0.1:port
Confirm that port 80 is allowed in the VM firewall, and that the webserver is running https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-gitlab-on-ubuntu-16-04
I followed all the steps and installed mitmproxy in my virtual machine and then proceeded to test it.
I opened firefox and used the IP address I got from ifconfig. {inet address}
And it worked!
But when I to do the same for my other laptop or phone{with the ca certificate installed} connected to the same router. It does not connect. The proxy doesn't work.
As you can see it works in my PC where I have the vmware running linux and mitmproxy, but this proxy isn't working for my other machines.
I just changed the 'Network' settings on my vmware to 'bridged'. And everything started working as expected.
Cheers,
I'm sure my lack of linux knowledge is what's causing this problem. I created a program in C# which uses QuickFix to do various things. I need this program to run on linux so I created an ubuntu virtual machine and recompiled the program with mono. The application starts ok but can't connect to my simulated exchange running on a windows machine. The error log returns Connection failed: Connection refused.
Could it be that I haven't setup linux properly?
Thanks
See if your VM can actually connect to that port (while the windows application is listening) with telnet:
telnet <ip> <port>
If telnet can't connect to the port, then you should probably check your VM network configuration, the interface configuration on ubuntu, and probably the firewall (both on windows and linux). Run ifconfig to see how your network is configured.
I've a webserver with xdebug 2.0.3 and Komodo 6 with Windows 7 64 bit but I can't connect to xdebug? I've tried a reverse shell with cygwin and I can connect to my server however when I try the debugger option in Komodo it gives me an error. In Komodo I've open a remote ftp session to load my file from the host. Normally with Linux it works with a reverse shell.
Edit: It's a bit on top of my head so I'm trying to debug my local virtual machine but Komodo gives me this error couldn't bind to local port 9000 and I don't have a firewall. when I enable debugging in the browser window with my opera extension I get success message client found in my xdebug log and when I load my html page but the connection is closed after the loading and it's not breaking at my breakpoint either. Here is the output from message log:
Log opened at 2012-04-30 08:48:40
I: Checking remote connect back address.
I: Remote address found, connecting to 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/
xdebug" fileuri="file:///htdocs/typo3_src-4.7.0/index.php" language="PHP"
protocol_version="1.0" appid="5101" idekey="komodo-xdebug"><engine
version="2.2.0rc2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></
author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c)
2002-2012 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/
xdebug" status="stopping" reason="ok"></response>
Log closed at 2012-04-30 08:48:41
My webserver is a lighttpd with FastCGI but that shouldn't be the problem because I already got it working with a remote host and a reverse shell but not in Windows 7 and with Vmware or in Vmware? I'm currently reading this post http://forums.netbeans.org/topic1513-30.html and I hope it helps.
Also I cannot see that a server is listening on port 9000. Is this a Vmware problem?
EDIT: I got it working on my virtual machine but I'm still interested in solving this issue:
xdebug connecting from host to virtual machine
xdebug connecting from host to remote machine (it works for me but only with a reverse shell)
xdebug connectiong from virtual machine to remote machine (didn't test it yet)
What can be interesting to is developement in Windows 7:
xdebug connecting from Windows 7 to remote machine
xdebug connection from Windows 7 to virtual machine
Use the debugger connection preferences to set the IP address of the virtual machine as the debugger proxy. Change the port that Komodo listens to from the default value of 9000 to a system provided free port, 8080, or whatever port your virtual host or localhost is running.