T
T
timka2282020-08-22 19:03:22
ubuntu
timka228, 2020-08-22 19:03:22

How to connect to the server from outside?

There is a server on Ubuntu with external ip. It runs a python script that performs REST API functions. The request can be sent over the local network to 127.0.0.1:5000 . But I can’t connect through an external network (I go to 94.xxx.xxx. xx:5000 ). What should be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vreitech, 2020-08-22
@timka228

you need to reconfigure the script from listening on the loopback interface (the one with the address 127.0.0.1) to listening on the interface with the address 94.xxx.xxx.xx or listening on all interfaces.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question