How to host Asp.net website with SQL Server database on server (personal Laptop) - asp.net

I have website which was developed in ASP.NET, I want to host this website on a server which is my own laptop (for test purposes). Also the website has interaction with SQL Server. So then anybody can use this website when my laptop is turned on. Is it possible? If yes, please inform me of the correct way to host my website

You just have to install IIS on your PC and use it as a web server. Your site will be available by IP or domain name (how-to or Youtube how-to). Also you can use dynamic IP and domain name with Dynamic DNS service like dyn.com

Related

browsing with server ip address not loading static content?

I have searched the web i could not find an answer to my problem.
I have windows server 2012 R2.
I deployed a .net website in the server.
browsing the website using the server ip adress does not load the static content (css,images, js) ?
However if I go to IIS and browse the website static contents get loaded.
In the IIS manager, I have binding to the some domain ex.ae.com. but this domain DNS pointing to another server currently. I wanna test my new server first, when things goes fine, i Will point that domain to the new server. But in order for me to do so. I have to first test the current server.
Any reason why browsing with IP address does not load static content ?
Thanks
Have you tried to open to users access to read your path?
User: IIS_USRS
Rights: Read

show Asp.net website to client without having domain or web hosting

I have developed website on Asp.net for my client . I want to show him progress of work . I have no domain or web hosting to show him . Is there any possibility to show my website built on Asp.net to my client ??Also I have used ngrok but its another case its not wirking . Any other software or free domain or web hosting???
You can try azure free websites.
Other than that, you can host the website on you own computer and give your client your ip address (you may have to play around with port forwarding and windows firewall).

Can Access Website using IP address on a Network but Not Using Host Name

I am hosting a website on the intranet. I configured the hosts file in etc folder and added the following:-
10.XXX.42.67 GSOnlinePortal.com
In IIS7 i have added my website and this is how my Site Binding looks like:
Now when i access this website on the host machine using http://GSOnlineportal.com, it works just fine. But i cannot access it through a different (remote) computer on a network.
If i change my binding on the IIS to look like this:-
Now i can access this website both on the host machine and a remote machine on network using http://10.XXX.42.67/ without any problems.
What is want is to access the website on remote machine on a network using http://GSOnlinePortal.com. Please help. I am fairly new and have finally come close to achieving this. Will highly appreciate it. Thank you.
The local etc/hosts file is used to provide domain name resolution services to the local system. The remote system from which you are trying to open the website is unaware of this mapping and cannot resolve the name GSOnlinePortal.com to IP 10.XXX.42.67. Two solutions are available for your problem:
If you have a DNS server available in your network, you could register the name there. (Recommended)
You could add the mapping in the hosts file of every system you want to access the web site.

Deploy web site without using a domain

I am new to the web world, so I apologize if this question is silly.
I have an ASP.NET web site I wish to deploy.
The server has IIS 7 deployed on it, and I've added the site
to that IIS server as a web site.
For the time being I don't have a domain mapped to the site,
I would like the users to browse for the site directly by using the server's IP.
Is that even possible? because I failed to do it.
The only option that worked so far is using the hosts file to declare
a fake domain.
It would be nice if someone could clarify that issue for me.
Thanks a lot,
Omer
If you set the site bindings to IP address: All Unassigned on port 80, and do not provide a host name, then any request that makes it through to IIS should be served by that site. Make sure you stop any other sites that might have that binding (e.g., "Default Web Site" is normally bound to this).
In order to access the site by IP, you can't have the host name populated in IIS. Your best bet would be to use the "Default Web Site" that's already in IIS, and point that to your application.
Using IP is possible, but you need to make sure your users can see this ip from their machines.

How can I showoff my ASP.NET application to my friends?

So, I made a cool demo which I want to show to my friends. But when I give them my IP-address (with the Development server's port and aspx page), it doesn't connect. How can I make it work?
They can't see the development server port.
It only serves pages to browser requests on the local computer.
You have to publish it to your IIS or to another machine that has IIS.
Deploy your site to your Local IIS server
The development server will only server connections from localhost. You need to deploy it to a real IIS server instance. Since you don't likely have Windows Server lying around, you can install IIS on any Professional edition of windows. Then your site will run on port 80, just like any other web site. You still may also need to forward that port on your home router.
Cassini (developers web server) has limitations and doesn't serve http requests from intranet/internet
You should deploy your site to IIS on your workstation (if your friends observe workstation via IP) or use Internet Asp.net Hosting
The development server can only be accessed by clients on the local box. You'll need to host your site on IIS to let them access it (assuming they're on your local network.) If you need to expose this on the internet, you'll have to get a hosting company to do that.
You are probably using the built-in webserver called cassini. By default, that webserver does only accept request from the localhost.
Set up a local IIS, and forward all necessary ports through the firewall
You should find a reliable and already configured webhost and host your site there. The first hit on google for "free asp.net host" was here.

Resources