Cant connect to server, i have my project set up and everything works except i cant connect to it.

I have a python server and i set the PORT env variable and i even checked with os.environ and it should work but it doesnt, i use 0.0.0.0 for listening but it still doesnt connect to my python server.
47 Replies
Percy
Percy2y ago
Project ID: a1ba481e-dbe9-4664-8e2a-90e956f95850
csd4ni3l
csd4ni3lOP2y ago
a1ba481e-dbe9-4664-8e2a-90e956f95850
csd4ni3l
csd4ni3lOP2y ago
csd4ni3l
csd4ni3lOP2y ago
csd4ni3l
csd4ni3lOP2y ago
csd4ni3l
csd4ni3lOP2y ago
maybe running both tcp and udp is the problem? but that worked everywhere else
csd4ni3l
csd4ni3lOP2y ago
Thiago Lordello
Thanks Daniel. But i dont understend your sugestion. This configs udp and tcp, i make in my code of the backend ?
csd4ni3l
csd4ni3lOP2y ago
its not a suggestion, i wanted to connect to my server hosted on Railway but i cant sir, it is timeouting the app works on localhost and it worked everywhere before its not a problem with my application, i set it up correctly . .
Thiago Lordello
It's cool. anyway thanks for the help.
csd4ni3l
csd4ni3lOP2y ago
just try to connect to it at all, it wont work, not a problem with sending messages or something but i cant even connect to it
Thiago Lordello
On my machine it works perfectly
csd4ni3l
csd4ni3lOP2y ago
you can connect to it? nevermind, i log connections and i cant see any ips
csd4ni3l
csd4ni3lOP2y ago
csd4ni3l
csd4ni3lOP2y ago
those are private ips
Thiago Lordello
I do not know exactly. But I see that the url is standing.
csd4ni3l
csd4ni3lOP2y ago
yeah, its not a web server, its not on port 80 so you cant connect to it from a browser only from code with sockets its a custom server made by me
Thiago Lordello
Yes
csd4ni3l
csd4ni3lOP2y ago
csd4ni3l
csd4ni3lOP2y ago
froze
Thiago Lordello
Two services database and backend its is working on railway I try tosend post method for url https://tiny-addition-production.up.railway.app/login but i received staus 503
csd4ni3l
csd4ni3lOP2y ago
Thiago Lordello
Yes
csd4ni3l
csd4ni3lOP2y ago
i have an idea what if we try to find numerical ip? and try to use that instead? maybe subdomain doesnt work?
Thiago Lordello
in my body i send json { "name": "thiago", "password": "trybe@123" } I dont say it works I imagine he problems its is on railway congigs configs
csd4ni3l
csd4ni3lOP2y ago
nope, doesnt work with numerical ip too
csd4ni3l
csd4ni3lOP2y ago
maybe ports arent shared -.- or something
Thiago Lordello
I don't know what it could be Thanks for try help me
csd4ni3l
csd4ni3lOP2y ago
you tried to help me first didnt you sir?
Brody
Brody2y ago
hello, it is not possible for you to run TCP or UDP servers on railway at the moment, only http servers. anything else will not work, no matter what port or ip you use
csd4ni3l
csd4ni3lOP2y ago
cryingman , thats really bad i cant use your service, thanks for making a good service for others sir
Thiago Lordello
Thanks Brody. I try to make request on my backend nodejs but i received status code 503. There is a tutorial for connect mysql to backend. Two projects are deploy works on my dashboard but dont connect.
Brody
Brody2y ago
do you two know each other?
csd4ni3l
csd4ni3lOP2y ago
i think you need to open another form cause this is mine and also submit your project id so he can help you no, he came in my ticket to help me or something first then i just said my issue to him and he said his issue to me so thats it
Brody
Brody2y ago
csd4ni3l
csd4ni3lOP2y ago
so you check if its http/https request and dont allow anything else?
Brody
Brody2y ago
don't hijack others help threads, please open your own #✋|help thread you can only run an http server internally, and externally you can only access the app over https and port 443
csd4ni3l
csd4ni3lOP2y ago
also your virtual private network is checking on me, i had a 192.168.0.(i dont remember) connect to it too
Brody
Brody2y ago
that would just be a healthcheck, perfectly normal
csd4ni3l
csd4ni3lOP2y ago
okay if you can, ping me here when it will be available sir, thanks for the help.
Brody
Brody2y ago
I can recommend you read railways change logs, it would be announced there
csd4ni3l
csd4ni3lOP2y ago
i keep my account till that and will remember this or i can make my server and subscribe to #📢|announcements right?
Brody
Brody2y ago
yep so you can get notified when a new change log comes out
Thiago Lordello
Brody can you help me ?
csd4ni3l
csd4ni3lOP2y ago
make a new help form *forum
Thiago Lordello
I'm sorry guys. I was interacting in the wrong topic that wasn't mine. Forgiveness. I already found my error. Sorry for the inconvenience. Sorry Daniel.
Brody
Brody2y ago
glad you have figured it out, of course in the future please open your own help threads
Want results from more Discord servers?
Add your server