Avatar of sk1922
sk1922
 asked on

IIS 7.5 / .NET Web Services / Intranet

EE -

Need some help....
Rather new to web services within a co. network - intranet environment.
Looking to expose a small web service to a vendor from our production Intranet server.  Obviously, we can use the service just fine within the network but I need to expose this to the outside world.  How do you go about setting this up.

So far we completed this:

- added a sub-domain called svc.companyname.com
- went into IIS Mgr, right clicked and selected "Add New Site"
- gave it a Site Name, Physical path: set to the directory in wwwroot where the service files reside
- in the bindings gave the host name of the sub-domain above
- clicked okay

Port 80 is currently being used for our main intranet site.  I'm assuming we need to assign a different port number to this new website for the service.

Also, maybe some changes to the firewall and possibly an Internal DNS entry as well.

Right now, with only the steps outlined above, when browsing to this via IE, we arrive back at our Intranet DEFAULT WEBSITE (port 80)

Please assist on where to go from here...
Microsoft IIS Web ServerWCFDNS

Avatar of undefined
Last Comment
sk1922

8/22/2022 - Mon
Paul MacDonald

"Port 80 is currently being used for our main intranet site.  I'm assuming we need to assign a different port number to this new website for the service."
Or a new IP address, either one.  Either way, you would need to configure your firewall to pass traffic on the new IP address or to allow traffic through the new port.

Another alternative would be to make the service a virtual directory under your existing web site.  So if your web site is www.companyname.com, the service could be at www.companyname.com/webservice.  This has the advantage of using the existing domain name and firewall settings.

Aaron Tomosky

If you can add the dns entry so they actually type svc.domain.com, iis can choose the right site. I have a ton of sites on one box on one ip on one port.
sk1922

ASKER
Thanks for the response experts!

paulmacd:  if I do create a new web site, and assign it a port other than 80, say 8080, i would need to include that in the address in order to communicate with the service, correct?  So, say http://svc.company.com:8080/myservice.asmx ?

aarontomosky:  i feel like I'm missing something bc I think I'm doing exactly what you're recommending but when I type that sub-domain, iis directs me to the home page of my Intranet site instead.  Any thoughts?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
SOLUTION
Paul MacDonald

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sk1922

ASKER
right on the money.... we show to have site bindings for net.tcp and net.pipe - both which have binding information listing a * binding..... my sys admin isn't hear this week for me to ask.  Any ideas on what that could be used for?

sk1922

ASKER
**here
Aaron Tomosky

I don't want to risk breaking something someone else setup. You should really ask the admin. Who knows what custom stuff is in there.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sk1922

ASKER
You're right.  Thought I'd ask in case there's a general purpose of such binding.

aarontomosky/paulmacd -

I'm increasing the points because I just thought about SSL... say at some point I load up an SSL cert on this production server and want this service to run, along with all other web sites under https.... what do I do?  example:

3 or so websites in IIS

- https://1.mycompany.com
- https://2.mycompany.com
- https://3.mycompany.com <--- and this is running the web service discussed in the above threads..

And so if site 1 occupies port 443 do the others have to change to something else too? meaning different from 8082, 8080 etc. or does that not matter?
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sk1922

ASKER
paulmacd -
....You're also exactly right regarding the port information

Can you explain... not exactly clear.  Will there be a need to update ports (changing from http to https) or does that not matter?
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sk1922

ASKER
Thanks guys!  That was quite helpful.  I appreciate the insight
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck