Make my server accessible through internet

0

I have created a very basic server and I have opened it to port 80. After seeing that it worked, I decided to make it accessible through the internet.

For this I have opened the port 80 of the router in the ip address of my computer and I have also opened the port in my firewall both input and output. Even so it does not let me connect from another device that is not my computer.

What am I doing wrong?

Thank you very much in advance.

The server connection code is this:

if __name__ == '__main__':
    server_address = ('**La ip de mi ordenador**', 80)  # Serve on all addresses, port 80.
    httpd = HTTPServer(server_address, HelloHandler)
    httpd.serve_forever()

In the router I have open port 80 in TCP and UDP and in the firewall I have four rules that allow the entry and exit of UDP and TCP in port 80.

    
asked by gery_08 29.06.2018 в 00:33
source

1 answer

2

Assuming that you have an internet service provider that assigns you a real IP (Telmex in Mexico for example) and not a Nateada, as for example TotalPlay does here in Mexico, you will have to redirect ports in your router depending on of the mark, you will have to add the redirection rule of all the requests from port 80 to the local ip of your server, equal to port 80.

To know if your server is properly configured, you can do the test from your internal network; from another device connected to the same network, when accessing the ip of your server.

I hope I have answered your questions, but without further details I can not help more.

    
answered by 29.06.2018 в 00:50