How to know the IIS server ip for my website access

29,317

Solution 1

If you know your hostname you can use nslookup to get the ip adress. Alternatively you can find all the ip adresses on the network cards using ipconfig. So either:

nslookup hostname

Or

ipconfig /all

You could also use netstat -n to find the ip adress listening on port 80 (which is the default for http)

Solution 2

First, check with the IIS Console. Right click web site + properties. The tab named "Web Site" shows the "IP Address". This btw could be "All unassigned", so you'd have to do an ipconfig on the server, and deduct IPs explicitly used by other web sites.

Second, beware that this address could be mapped to some other [public] address at the level of a firewall / gateway / WSD device on between the server and the client.

Third (or first), using "ping" or "nslookup" as indicated in other replies, ensure that the name that will be used as part of the url matches the IP discovered above.

Share:
29,317
Admin
Author by

Admin

Updated on September 15, 2020

Comments

  • Admin
    Admin over 3 years

    I have deployed a website in my server, how i know which what my server IP is ?

    if i know my server ip , i could access my website from outside