omer schleifer
omer schleifer

Reputation: 3935

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

Upvotes: 1

Views: 2027

Answers (3)

Tianyun Ling
Tianyun Ling

Reputation: 1097

Using IP is possible, but you need to make sure your users can see this ip from their machines.

Upvotes: 0

Ryan M
Ryan M

Reputation: 2112

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).

Upvotes: 2

Joe Enos
Joe Enos

Reputation: 40393

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.

Upvotes: 1

Related Questions