Couldn't connect web socket client to websocket server on local host windows 10 - python-2.7

I have an application signed for microsoft store which starts a web socket server on localhost (0.0.0.0:8081) on launching. Then I run python script with websocket client on the same host and try to connect to server (ws://127.0.0.1:8081) and it couldn't connect. But I can connect without any problems if I run this python script from another PC. Actually it works fine on local PC on another platforms: Win7, MacOS.
What i tried:
disabled windows firewall and defender
tried to add exception for application using CheckNetIsolation LoopbackExempt
tried to connect using different ip (0.0.0.0, 127.0.0.1, pc name)
It seems like I have to switch/set on/off some option for application or win10, but I can't find it
Thanks for help in advance

I found a solution https://learn.microsoft.com/en-us/windows/iot-core/develop-your-app/loopback
if you want to connect smth to win application on win 10 you should run
CheckNetIsolation.exe LoopbackExempt -is -n=your application
permanently
the best way to add it to start up menu

Related

How can I get expo to connect to Android emulator with a non-localhost ip address?

I have an Android Emulator running on Windows on port 5554.
I am running expo inside WSL2. I have verified that I can access my Android Emulator on WIndows since if I type in:
# 172.22.80.1 is the IP to Windows from WSL2
telnet 127.22.80.1 5554
it shows me the same "Android Console: Authentication required" prompt as if I did it in my Windows PowerShell.
However, when I click on "Run on Android device/emulator" from the Metro Bundler web page, it throws me:
Couldn't start project on Android: could not connect to TCP port 5554: Connection refused
It seems like it's trying to access the emulator via localhost:5554, but I would like it to connect to $SPECIFIED_IP:5554.
Is there an env var where I can change this? FWIW I am using a Managed Expo project.

How can I troubleshoot PCs not seeing each other over my LAN

I'm a complete newbie when it comes to networking. I have two PCs on my LAN both running Manjaro. My main aim is to test functionality on a Django server running on one PC, from the other. I am running the Django server on the PC with ip address 192.168.1.138 using the command
python manage.py runserver 192.168.1.138:8000
and in settings.py
ALLOWED_HOSTS = ['localhost', '192.168.1.138']
I can ping 192.168.1.138 from the client PC, and ping the client PC from the server PC. But if I enter the ip address/port into the browser, it fails with
took too long to respond
I don't know if this a separate problem or a manifestation of the first, but when I run NitroShare, I am able to 'see' the PC running the Django server from the PC acting as the client, but if I try to transfer a file, again it times out. I am unable to see the client from the server in NitroShare.
Any suggestions or help gratefully received
Ensure you don't have a firewall running (or that it allows connections to port 8000). Manjaro's docs imply there might be no firewall by default, but in case there is, see https://wiki.manjaro.org/index.php?title=Firewalls
Set ALLOWED_HOSTS = ['*'], don't bother with limiting them.
Run with python manage.py runserver 0:8000 ; the 0 stands for 0.0.0.0, i.e. has the server listening on all network interfaces.
First I would scan with the other PC the open ports of you "Server"-PC, you can do that with tools like Nmap. Make sure you opened the ports of your "Server"-PC at your router interface. Another option could be the launching of the django app in a docker container. Here's the link of the official docker image at DockerHub:
https://hub.docker.com/_/django

Wamp server icon indicates orange color

When I start the wamp server it indicates only orange color. I tried to fix that problem but I could not to fix that. The one thing I did is below,
Apache->service->install service
cmd shows this ,
your port 80 actually used by : server : microsoft -IIS/7.5 cannot
install the apache service , please stop this application and try
again. press enter to exit
So Uninstall wamp server and reinstall..
In the process of installing choose the different portnumber rather than 8080,
hope it will work
IIS server used same port as wamp server.
Two solutions have found.
assign a new port to use to wamp.
stop running IIS server

Can get to one guest webserver on VirtualBox, but not to another

I have a VirtualBox setup with Arch Linux. I use it to run various tutorials on Node.js and Redux. The host OS is Windows 8.1. I've mapped guest port 8080 to host 8080. When I run a simple Node.js server on the VM I can access it from the host machine on this port, just as expected.
Now I need to try another test server (webpack-dev-server). I start it in VM and check that it works via curl, but when I try to access it from the host, it says the connection was reset by peer. curl -v shows a pretty standard log: it sends a header and then says Recv failure. So:
one web server on VM works OK and is accessible via the mapped port;
another web server on VM works OK on VM, but is not accessible via the mapped port.
What could be the cause?
I think it's something with VirtualBox, but just in case I label this with webpack-dev-server as well.

C++ Windows Server - how to accept an SSH connection?

I have a server application i'm making specifically for windows. However the client that needs to connect to it was originally created towards a Linux server. The client connects through SSH and runs simple commands to execute bash scripts. I'd like to make my server work with this client without making any changes to the client.
So the client would usually SSH into the Linux server -> run command to execute bash -> bash script did stuff
I'd like the windows server to accept the SSH connection -> grab the command -> execute a function that does what the bash script would of done.
My question here is how can I make my server accept that SSH connection and get that command the client sends through?
Maybe these resources will help.
Set up a free SSH server on Windows 7 with freeSSHd
http://www.techrepublic.com/blog/tr-dojo/set-up-a-free-ssh-server-on-windows-7-with-freesshd/
OpenSSH for Windows
http://sshwindows.sourceforge.net/
MobaSSH: Free SSH server for Windows
http://mobassh.mobatek.net/