View my Django site hosted in IIS from another computer - django

I have 2 pc and inside all the 2 i have installed Windows 10 pro X64
from hosted pc:
I know Microsoft deprecates Python support on IIS
I developpe my app with django==2.1.*
I have configure IIS to host my django app
I have test, all work like a charm.
I have edit my hosts file and add line in the end of my hosts in system32/...etc
like this:
mycurrenthostedpc_ip myapp.extranet
when i finish imake binding in IIS like this:
myapp.extranet --->> host
mycurrenthostedpc_ip ---->>>> IP address
I have configure firewall to accept Inbound and port 80
In the hosted PC when icheck
http://myapp.extranet/ ---->>> It work well in the hosted pc
But when i check in second pc connect to my network like this:
http://myapp.extranet/ or http://hosted_pc/myapp.extranet/ ------>>>> Not working
How can i correctly configure my hosted PC if i want to access to my django app (inside another computer) with this url (http://myapp.extranet/)
Thank for advance...

Related

How do I link an already existing domain to a Windows Server 2019 VPS

I have a Django project running with Nginx and Waitress on my Windows VPS. I want to make it accessible to the public with a domain name. I am completely clueless on how to go about it, although I have pointed my domain's A record to the Public IP address of the VPS. To be specific, I am running a Windows Server 2019 on the Gcloud platform.
Check and make sure your VPS firewall settings are such that it allows request from public site at Port 80.
I just found a way to do it. I edited my Windows Server 2019 VPS firewall and added a port inbound rule, enabling request from remote clients on port 80 which is the port my nginx server serves from. #AnirudhBargi i guess i didn't understand your initial question. Enabling port 80 to accept request was the solution all along. Thank you very much.

[local IP]:[PORT] redirects to public website (Flask, server configuration, local environment)

I want to debug a flask app on mobiles.
My application configuration allows to expose the app to the network:
application.run(host= '0.0.0.0',port=5000,threaded=True)
However, if I load mylocalIP:5000, it redirects to www.example.com, where the production site is hosted, and cannot figure out where it is written to resolve the redirect.
So I cannot see my local environment but in my local machine, and cannot debug the app on other machines - like mobile phones.
Where should I look to solve the problem ?
I must have changed configuration on my machine somewhere, I don't think it is related to flask.
Note: as alternative , I tried use my local host alias:
I'm using a mac, System Preferences > Sharing > Internet Sharing is enabled, other computers in local networks can access my local env at myLocal.local host, but still access to myLocal.local:5000 is forbidden for other machines but my computer.
You can do one thing, install Fiddler app and configure the reverse proxy on your mobile phone. This tutorial will help you to configure fiddler in android applications.
After configuring the reverse proxy, run the flask application on localhost or machine IP and you can access your machine IP on your mobile. Fiddler would also help you to intercept all the calls made to your application. If you don't want to inspect via fiddler you can directly put your mobile on same network of application.

Running SonarQube on internal Web Server

I am trying to make Sonarqube working on a virtual machine, IP 192.168.0.150, running on a production server (Win Server 2012 R2). I need also to access it from the Internet. Thus, I created a new website in IIS on the Physical server enabling the reverse proxy and redirecting everything to 192.168.0.150. This apparently works: I can access successfully the dashboard from any remote pc.
The problem is: when i try to login, sonarqube redirects to 192.168.0.150. As you can easily imagine this blows up everything from a remote pc.
I tried everything in sonar.web.host and sonar.host.url but nothing.
I tried an Outbound rule in IIS to overwrite 192.168.0.150 with my website address but it doesn't work with gzip compression.
What can I do?
Thanks
Resolved.
I had to check "Reverse rewrite host in response headers" option in IIS -> Machine -> Application Request Routing Cache -> Server Proxy Settings.

Access wamp server of laptop using numeric IP address with subdomain in the url

My laptop and android mobile are connected to same router. I am able to access wamp running on my laptop using http://192.168.1.108/ but i want to access it like http://test.192.168.1.108/.
Any ideas?
My suggestion is to get a DNS service like noip.com. You can get an DNS address of whatever is available and point to a server in your own network, i.e. 192.168.1.108. I do this all the time.

Specify the port precisely for a webservice in Web.config

I want to precisely set the port for a .NET 3.5 web service using the client services api
I have been trying to get this to work using
http://msdn.microsoft.com/en-us/library/bb546195.aspx to no avail I have my domain mydomain .com / Appservices where is Appservices is an app root.
I can login to my web site using the login page but the login when the app is running does not autheticate. But 2 local webservers start running the main website and the webservice that is a directory off of root the aforementioned AppServices.
What are the troubleshooting techniques here?
Is the port you want to use, already in use? (For example, 110 - POP3).
Is the port accessible through the firewall? [Start->Control Panel->Windows Firewall : Exceptions]
Have you tried setting the port number in IIS? [In properties-> configuration]