I have created a simple MVC Application and hosted on Windows Server 2016 on IIS, its running fine on server, like this:
Now i want to access it on my local network, with the same ip: 148.72.xxx.xxx:xx, but i am unable to do so. Can anybody help me what i am missing here.
Also: it worked when change port to 80 but not working on port 82 why so?
I think that's because either you didn't change your port number in IIS binding from default 80 to 82 or you forgot to allow 82 port in your windows feirewall. The port number is not controlled by your MVC application but IIS binding host header.
This is the link about how to create a inbound rule in windows firewall
https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-firewall/create-an-inbound-port-rule
Related
I'm trying to enable https protcol for my application that I'm building on a localhost which has a port number like this:
https://localhost:19590/
I have went to the IIS xx express version and enabled https binding and have been able to access localhost (without any port number) via https like this:
https://localhost/
But now I need to enable HTTPS for the project solution I'm working on currently on port 19590, and when I try to access it, it says that the:
This site can’t provide a secure connection
What am I doing wrong here, how can I enable HTTPS for the localhost project on this port number exactly?
In your project properties, in the web section under Servers can you try choosing Local IIS instead of IIS Express and create virtual directory on https://localhost/
i am hoping you can help.
I have just started hiring a web server from hetzner.
I loaded wamp onto the server, but as it is a windows 2012 server, it's port 80 is being used by the default loaded IIS.
So i opened up the port 81, for wamp, but it has been a struggle, when i type in my browser localhost:81 it shows me wamp server homepage, but whenever i try to enter into the phpmyadmin page, it's loaded, but i just see a white screen, i cannot enter the database management.
Does anybody know what might have caused this?
If you are using port 81 ( or any non standard port ) you have to add the port number to all your url's.
So try using
http://localhost:81/phpmyadmin
and it will work.
If you are not using IIS I would suggest disabling it and all its friend that grab port 80 so you can move wamp's Apache back to port 80.
Using the [RequireHttps] port in an ASP.NET MVC application causes a redirect to HTTPS on port 443 if the user attempts to access the application over HTTP.
However, in IIS Express, the application will probably not running on port 443. It will, instead, be running on something like port 44301.
I've found various tips for replacing RequireHttpsAttribute with an implementation that takes the alternative port number as a parameter, or reads it from Web.config.
This is clunky, because it requires configuration in more than one place.
Is there any way to do this -- programmatically -- in a generic fashion?
Without trying to pre-empt the answers, some options occur to me:
Is there any way to discover the bindings being used by the instance of IIS or IIS Express that's hosting my app?
Is there any way to read applicationHost.config for the current IIS / IIS Express host?
You can check currently used bindings (of IIS/IIS Express) by running following command
"netsh http show servicestate view=requestq"
You can find applicationhost.config file of IIS Express in %userprofile%\documents\iisexpress\config folder.
I have set up a CRM 2011 in a vmware under port 5555. I can access the CRM system fine locally. However, when I tried accessing from my host machine I got IE cannot display webpage error. I can access IIS port 80 though. I have added Inbound Rule to TCP port 5555 on my Windows Server 2008 R2 CRM server. Anything else I have to do?
Are you using anything such as no-ip, dyndns?
You have to make sure your router is mapped to route the port: 5555 to your server Ip, is your internet with static IP?
Hope that helps.
Renato
This is an old post however might help someone...
You need to allow port 5555 on your VPC (VMWare)
Go to Firewall settings and add exception for this port. Once done you should be able to access CRM externally.
Below is a detailed blog about it
http://rokhri.com/blog/crm-how-to-access-crm-externally-installed-on-vpc/
I'm trying to host a Web API self host application along with IIS.
My Web API project is running on subdomain1.domain.com. My IIS have a site configurered at subdomain2.domain.com.
As soon as my Web API application is started it takes over everything on port 80 and responds to it - no matter what the hostname is. Is it possible run these to sites side-by-side?
Thanks!
You can set the port in the HttpSelfHostConfiguration constructor. See the code here for an example: http://www.matlus.com/self-host-asp-net-web-api/
*Edit to specify further answer from comment: selfHostconfiguration.HostNameComparisonMode = HostNameComparisonMode.Exact; will allow running the sites on the same port.