Railway MySQL public TCP proxy always times out
luhclalala
PROOP

an hour ago

Hi Railway team,

I'm using Railway Pro.

I have a Railway-managed MySQL database.

The database itself is healthy:

  • MySQL starts successfully.
  • Logs show "ready for connections".
  • Private Networking works correctly.
  • Services inside Railway can connect to mysql.railway.internal.

However, Public Networking is not reachable.

Current public endpoint:

altaria.proxy.rlwy.net:51845 -> 3306

From multiple external networks (including mobile hotspot), every TCP connection times out.

Tests:

nc -vz -w 5 altaria.proxy.rlwy.net 51845

Result:

nc: connectx to altaria.proxy.rlwy.net port 51845 (tcp) failed: Operation timed out

I have already:

  • Recreated the Public TCP Proxy
  • Restarted the MySQL service
  • Confirmed MySQL is listening on port 3306
  • Tested from multiple networks

Could you please check whether the TCP proxy for this service is correctly provisioned?

Thank you.

$20 Bounty

6 Replies

Railway
BOT

an hour ago

Having looked into this, the issue appears to be in your application code or configuration rather than the Railway platform itself, which puts it outside what Railway support can resolve directly.

This is exactly the kind of problem the Railway community is good at, so we'd like to open your thread as a community bounty. Railway pays a bounty to the community member who solves it, and threads like this usually get picked up quickly.

Opening it makes this entire thread public, including everything already posted. Nothing becomes public until you decide. Use the buttons below.

  • Open to the community - Before you click, take a moment to edit or remove anything you'd rather not share. The thread becomes publicly visible right away.
  • Keep it private and close the thread - Nothing becomes public. The thread closes, since this isn't something Railway support can take further.

Status changed to Awaiting User Response Railway about 1 hour ago


Railway
BOT

an hour ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway about 1 hour ago


43 minutes ago

Have you tried using a VPN?


0x5b62656e5d

Have you tried using a VPN?

luhclalala
PROOP

34 minutes ago

yeah, I tested through a Singapore VPN as requested, but it still connot connect


26 minutes ago

Perhaps a different VPN location?

I'm able to run nc just fine:


➜ nc -vz -w 5 altaria.proxy.rlwy.net 51845

Connection to altaria.proxy.rlwy.net port 51845 [tcp/*] succeeded!

0x5b62656e5d

Perhaps a different VPN location? I'm able to run `nc` just fine: ``` ➜ nc -vz -w 5 altaria.proxy.rlwy.net 51845 Connection to altaria.proxy.rlwy.net port 51845 [tcp/*] succeeded! ```

luhclalala
PROOP

19 minutes ago

Thanks!It works when I enable VPN in global/TUN mode. Without the VPN, ICMP ping works, but TCP connections to the Railway proxy port time out.


luhclalala
PROOP

18 minutes ago

Solved.

The issue turned out to be network routing.

ICMP (ping) worked, but TCP connections to the Railway proxy timed out from my local network.

After enabling my VPN in global/TUN mode, the TCP connection succeeded and I could connect to MySQL normally.

Thanks for the help!


Welcome!

Sign in to your Railway account to join the conversation.

Loading...