简体   繁体   中英

How to Access a Web Service on a Host with no External IP Address?

Let's say I have a website hosted on a server called Serv1 in our LAN.

I want to create some web services, which will allow users to download/upload data to the website's back-end SQL server.

I don't want to host the web services on Serv1. I want to host them on Serv2, which is in our LAN but does not have an external IP address.

Will this work or will I have to pay for an additional external IP address?

It's not about IPs, it's about URLs.

If Serv2.yourdomain.com isn't visible, Serv2.yourdomain.com/service.asmx isn't visible either.

On the other hand, there are lots of ways to make Serv1.yourdomain.com/service.asmx pull data from elsewhere on your LAN.

Edit

I see this was unclear.

Since two subdomains can use the same IP, and one server can have many IPs, I think the OP's emphasis on IPs rather than subdomains was obscuring his actual requirement.

If you don't want to put the services in serv1 you will have to make serv2 available. web Services must be available, unless this will all work intranet and all the servers are available

If the users are all internal users, an external IP address won't matter. Well, if all users are on the internal network that is.

If you need this service available outside of your network, I guess we'd need a bit more information (at least I would). If you have a domain that is externally accessible, I'd imagine you could have a URL on the domain route to your service on Serv2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM