Ngrok: Run ngrok UDP & TCP together?

Created on 12 May 2017  路  14Comments  路  Source: inconshreveable/ngrok

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.

Most helpful comment

Please bring UDP support due to this crononavirus situation

All 14 comments

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

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.

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?

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

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

@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.

Dang ok idk then sorry 馃槩

Please bring UDP support due to this crononavirus situation

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.

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

@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.

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

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 ???

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shubhamk1997 picture shubhamk1997  路  5Comments

ricardoasc picture ricardoasc  路  5Comments

IngwiePhoenix picture IngwiePhoenix  路  7Comments

asukiaaa picture asukiaaa  路  5Comments

megapctr picture megapctr  路  4Comments