I am developing a project in the goland programming language, on Windows I launch (at localhost: 3000) everything works. Now we need to transfer this project to the internal server of the enterprise, put it on the Red Hat 7.5 server and the mysql database. The project started, everything works, also on the path localhost: 3000. Now I want to connect from another computer to the ip address, entering the server ip: 3000, and nothing happens. Someone faced such a problem, how can it be solved?

  • one
    for ' bind ' and the socket to the desired address, or INADDR_ANY (aka 0.0.0.0 ) to listen on all interfaces, then see netstat -tln what it listens on the correct port + if there is a fire bar, but open the port on it ... I don't know the syntax of / api / macros in go to give specific code ... at least without the minimal reproducible example in question. - Fat-Zer 4:39 pm
  • Strangely enough, in the remaining assemblies, Ubuntu turned out all right, just launched the project, entered the ip and the port and the project worked, but does not want to work at the red hut - Prizrak771 February

1 answer 1

If the ip address is outside the local network, it is necessary to forward the port to the local ip address on the router