securesocketfunneling / ssf

Secure Socket Funneling - Network tool and toolkit - TCP and UDP port forwarding, SOCKS proxy, remote shell, standalone and cross platform
https://securesocketfunneling.github.io/ssf/
Other
1.59k stars 235 forks source link

Forwarding UDP #93

Open explodersname opened 3 years ago

explodersname commented 3 years ago

Hello, let me give you the rundown. I am trying to forward a bedrock server from my pc at home to my computer so i can play on it from other places. Bedrock uses UDP on port 19132. I would like to know how to forward my bedrock server to my computer. I have SSF binaries downloaded for my PC at home to my laptop. I am using the following command on my Computer at home (server): ssfd -p 19132 and the command on my laptop (client): ssf -p 19132 (ip address of my home network) I would think this would work but it doesnt. My laptop says "Server unreachable" after a few seconds of trying to connect. Is there some other steps I need to take before doing this or am I using a wrong command? Or am I using the completely wrong software to do this?

explodersname commented 3 years ago

I have also tried the client side command: ssf -V (ip):19132:127.0.0.1:19132 -p 19132 (ip)

p0t4t0sandwich commented 3 years ago

Bedrock usually won't let you join via localhost, but since you're using the ssf I'm not sure what's going on

willmatheson commented 3 years ago

Thanks for the suggestion @p0t4t0sandwich - what worked for me was changing the 127.0.0.1 part to the actual local IP of my computer.

On a cloud Ubuntu server, I ran: ./ssfd -g

On my PC (Ubuntu via WSL2 on Windows 10), I ran: ./ssf -g -V cloudserverip:19132:mylanip:19132 cloudserverip

I couldn't believe it when I was able to connect to my local BDS through my phone on data! (You do have to enable this in the phone app settings - by default multiplayer is wifi only.)

You might also want to try the PowerShell commands from the wiki. I did these a long time ago, as I run BDS and play on the same PC: https://minecraft.fandom.com/wiki/Bedrock_Dedicated_Server#Connection

omstr commented 2 years ago

Would someone be able to explain why ssf -V cloudserverlocalip:27015:localip:27015 -p 10000 cloudserverpublicip results in an unreachable connection from windows 10 client side as per this guide?: https://medium.com/@st.navybloo1/how-to-port-forward-from-a-university-network-b71c8f07a1c5