inconshreveable / ngrok

Unified ingress for developers
https://ngrok.com
Other
24.19k stars 4.27k forks source link

Run ngrok UDP & TCP together? #422

Closed ghost closed 6 months ago

ghost commented 7 years ago

Hello inconshreveable.

I have a question. This day I tried to forward my connection from a game server to public but failed. I am trying to forward a port 27015, which is from a Counter-Strike game, and I want to forward it just so I can play with one friend online. When I connect to the 0.tcp.ngrok.io:16722 this is what I get in the game console:

] connect 0.tcp.ngrok.io:16722 NET Ports: server 27015, client 27005 Server IP address 192.168.1.3:27015 Connecting to 0.tcp.ngrok.io:1672 Server has no UDP/IP Configured. Please try later.

Will you ever include a UDP in ngrok ? Because the game server needs a UDP port instead of TCP.

Thanks in advance.

BonsoirDiep commented 6 years ago

Oh, I also have the same idea, WE LOVE CS. :+1:

Please let me know if you have solved it I think we need UDP server.

ngrok for web dev :laughing: Tunngle - The Global LAN Gaming Network :rocket:

or: Connect Using Hamachi

Famous5000 commented 5 years ago

This was rejected in #26, so sadly I don't think it'll come to pass. As much as I'd love using it, it just doesn't work.

ilickmonkies commented 5 years ago

Wait can't you go in the config and make a second app that is UDP? and then when you open up ngrok just use the command ngrok start --all. Here I have an example:

authtoken: [YourToken] tunnels: first-app: addr: 25565 proto: tcp second-app: addr: 25565 proto: udp

because I think in beta or alpha versions udp is an option. Of course, replace the token with your own, and set the port as the CS port. If there is no UDP, then man, why not?

ilickmonkies commented 5 years ago

I used 25565 in my case because I am trying to get a Minecraft server to work

ilickmonkies commented 5 years ago

Ok I found a thing that works @nurudinimsirovic Just follow this and you should be all ready! :) https://stackoverflow.com/questions/25522360/ngrok-configure-multiple-port-in-same-domain

ghost commented 5 years ago

@Bubeboi UDP protocol is not implemented in ngrok, so no. Only HTTP and TCP are supported.

Minecraft server can be started directly from Command line: ngrok tcp {server_port} -region=eu

The reason its possible is because Minecraft uses TCP only connection.

ilickmonkies commented 5 years ago

Dang ok idk then sorry 😢

IshamMohamed commented 4 years ago

Please bring UDP support due to this crononavirus situation

MarkoPaul0 commented 4 years ago

I might be able to help, but I am not a gamer and I don't fully understand what you guys are trying to do. I've built a tool that allows people to tunnel UDP traffic through a TCP connection (https://github.com/MarkoPaul0/DatagramTunneler). Sometimes people ask me if it works with ngrok. I just can't answer because so far people have been unable to clearly explain to me what they are trying to achieve.

Have a look, and let me know if you think this could get you closer to solving your problem.

Shvan11 commented 4 years ago

@MarkoPaul0 your looks great, but it does not work on windows :(. is there something similar for windows?

MarkoPaul0 commented 4 years ago

@Shvan11 not that I'm aware of a windows equivalent, unfortunately. I could work on adding windows support but that would take more time than I have.

frostfire1 commented 4 years ago

I used 25565 in my case because I am trying to get a Minecraft server to work

how to use minecolab i use doesn work

frostfire1 commented 4 years ago

Wait can't you go in the config and make a second app that is UDP? and then when you open up ngrok just use the command ngrok start --all. Here I have an example:

authtoken: [YourToken] tunnels: first-app: addr: 25565 proto: tcp second-app: addr: 25565 proto: udp

because I think in beta or alpha versions udp is an option. Of course, replace the token with your own, and set the port as the CS port. If there is no UDP, then man, why not?

how to use first app and tunnels ???

Efealtan0909 commented 4 years ago

ERROR: Error reading configuration file 'C:\Users[im not saying my username for privacy reasons].ngrok2\ngrok.yml': YAML parsing error: Invalid protocol name 'udp'

Famous5000 commented 3 years ago

ERROR: Error reading configuration file 'C:\Users[im not saying my username for privacy reasons].ngrok2\ngrok.yml': YAML parsing error: Invalid protocol name 'udp'

UDP is not going to be supported by ngrok anytime soon as far as I have been able to tell, not my call, sorry. This was requested a few times already, most notably #26.

frostfire1 commented 3 years ago

ERROR: Error reading configuration file 'C:\Users[im not saying my username for privacy reasons].ngrok2\ngrok.yml': YAML parsing error: Invalid protocol name 'udp'

use tcp

explodersname commented 3 years ago

I have found a good alternative to ngrok that is free and open source: https://github.com/fatedier/frp

ShiftyTR commented 2 years ago

I found this https://localtonet.com/

GttMone commented 1 year ago

I found this https://localtonet.com/

OMG! Thank you so much!!! Best program for TCP & UDP!!!

russorat commented 6 months ago

Thank you for opening this issue! As of April 2016, the ngrok service has permanently moved to https://ngrok.com/. To join the community and file bug reports or feature enhancements for the ngrok agent, please go to https://github.com/ngrok/ngrok.

This repository is no longer actively maintained and will be archived soon to reduce confusion with the latest ngrok versions. We thank you for the continued support of ngrok and look forward to seeing you over at ngrok.com and the ngrok Community Repo.

russorat commented 6 months ago

Continued in https://github.com/ngrok/ngrok/issues/4