'How do i access a website hosted on a remote desktop?

Current scenario:

  1. I have a computer, lets call it COMP1, with windows 10 as operating system. There i have a python script running which creates me a web-application, hosted on the same machine, so that i can access it on localhost with port e.g. 6000.

  2. Now i have another computer, lets call it COMP2 (also windows 10), where i want to connect to this web-application remotely, which is hosted by COMP1. Both machines are in the same network. So i opened the port e.g. 6000 on COMP1 and thought that it will sufficient by typing 192.168.X.X:6000, where 192.168.X.X is the ip-adress from COMP1.

But this approach seems not working. I checked the firewall logs, and it seems that either COMP1 did not receive anything on this port or COMP2 is not requesting on this port. Did i miss something?

I already tried all solutions in this post, but nothing worked: Access to a site on localhost from remote



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source