Want to access windows server 2019 over public ip

Malik Humza Yunas 1 Reputation point
2021-07-06T04:56:44.89+00:00

I have configured a static ip in network properties with ipv4 but still i can't access port 80 of server online via public ip.

Windows development | Internet Information Services
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. JiayaoZhu 3,926 Reputation points
    2021-07-06T07:39:52.46+00:00

    Hi,

    Thanks for posting on our forum!

    Based on your description, I need to know more about your network environment. I notice that you put Hyper-V tag, so can I presume that your goal is to reach virtual machines from internet, from public IP? I may need more information to help you scope and troubleshoot your issue.

    Thanks for your support!

    BR,
    Joan


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. JiayaoZhu 3,926 Reputation points
    2021-07-08T02:22:32.92+00:00

    Hi,

    Thanks for your patience!

    Based on your information, I firstly would like to check:
    “Now what i want to do is access that hyper v instance from internet all services i.e RDP or IIS websites or PHP sites i want to host there.”
    ——You mean you cannot login to your virtual machine? RDP, PHP sites are all media through which you can login to your VM. In this way, you should connect to your VM's IP address rather than your company's.

    Please try to connect to your VM's IP address, to see if the issue can be solved. Furthermore, you can go to Event Viewer>> Applications and Services Logs>> Microsoft>> Windows>> Hyper-V VMMS, to check if there is any error codes or messages in relevant event logs.

    Thanks for your support! Hope to hear your good news soon.

    BR,
    Joan


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. JiayaoZhu 3,926 Reputation points
    2021-07-09T05:41:19.067+00:00

    Hi,

    Thanks for your quick reply!

    Based on your description, I think you need to install a vpn to connect to external Internet. Hyper-V has three kinds of network switch: public, internal and private. Basically, private network cannot be accessed to internal and external network. So, you need to check if you have configured the correct virtual switch (public). Here is an article to help you better understand Hyper-V network:

    https://www.altaro.com/hyper-v/virtual-networking-configuration-best-practices/

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Besides, based on your error message, I think you should talk to your company's IT team to see if your have been assigned permission to the Internet successfully. You can also consult with IT team to learn more about your company's network configuration.

    Finally, would you please help me Accept Answer if my work is helpful to you. An accepted blog can be put on top of our forum, so that people who have a similar issue can get access to their solution more quickly. I would really appreciate it if you could support my work.

    Thanks for your support!

    BR,
    Joan


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. JiayaoZhu 3,926 Reputation points
    2021-07-13T02:59:43.637+00:00

    Hi,

    Thanks for your patience!

    After research, I think you may have problems with static NAT configuration on your router. I suggest that you should configure a static NAT on your router instead of using your way, I guess, to configure IIS to forcibly bind the public. This is because even if IIS forcibly bind the public IP, router will not send traffic to it. You must first ensure that the route can reach the VM.

    When we need to communicate with outside network, for instance, with public network or with another private network but need to go through public network first, we must configure NAT on the router inside your private network where your VM is located. The function of NAT (Network Address Translation) is to translate public IP 121.52.158.248 to your VM IP address domain (i.e. if your VM IP is 192.68.11.1, the public IP can be translated to 192.68.1.4) when traffic is coming from outside port. In addition, in terms of outside traffic, it is NAT works first and then the router select certain IP. On the other hand, when it comes to inside traffic, the process is reversed, that is, your router works first and then your NAT on your router.

    The above example is based on routers that use IOS facilities. Different routers may have different rules for configurating NAT.

    So, you need to firstly identify which kind of router your organization uses and then come to visit the corresponding vendor's website to find certain static NAT configuration handbook to configure your NAT.

    Thanks for your support! Besides, would you please help me Accept Answer. An accepted blog can be put on top of our forum, so that people who have a similar issue can get access to their solution more quickly. I would really appreciate it if you could support my work.

    BR,
    Joan


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  5. Malik Humza Yunas 1 Reputation point
    2021-07-13T06:34:41.98+00:00

    Sir this is my RDP connection on private network.

    https://prnt.sc/1aq17mf

    This is the picture of browser inside my Server https://prnt.sc/1aq1p8q

    This is my IPV4 ethernet configuration of Virtual adapter of Hyper V Inside the server I want to access publically.

    https://prnt.sc/1aq23fc


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.