We implemented a simple server program using Python. It's a program that returns a string when you receive a GET message.
I run the program, and I put it in the Internet window on my computer
http://JIP address:server port number/index.html
It works well when you type
You can't type the same thing on another computer.TT
Is it a port forwarding problem? The firewall is turned off.
python socket server
It seems to be a network problem, not a Python problem. I think you should check if the ping reaches the destination (server) from the outside to the tracert or check if the port is open.
As mentioned in the comment above, if it is a router environment, DMZ is set up so that it can be accessed from outside on the router (all ports of the set IP can be accessed from outside). (not recommended for security) or superDMZ (=special DMZ, TwinIP), which allocates an authorized IP internally, and port forwarding to connect the authorized IP to the internal IP:server port.
Alternatively, you can test to see if there are any packets coming from outside through a packet dump on the server.
The question mentioned port forwarding, so it is presumed to be a router environment, so please test it after setting up port forwarding.
© 2024 OneMinuteCode. All rights reserved.