maxmcd / webtty

Share a terminal session over WebRTC

Home Page:https://maxmcd.github.io/webtty/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with initial handshake

cooganb opened this issue · comments

I've installed webtty on OSX 10.12.5, along with dependecies. From the go/bin folder, I'm running webtty -cmd -v, which gives me an offer message.

I paste the message into the https://maxmcd.github.io/webtty/ and get the answer, which I paste back into the host, which fails with this message:

Answer recieved, connecting...
Failed to push SCTP packet: Failed handling chunk: TODO Handle Init when in state CookieWait

If I run webtty -cmd -h -v, I get to the same point with this error on the host machine:

Answer recieved, connecting...
Failed to push SCTP packet: Failed handling chunk: TODO Handle Init when in state CookieWait
Terminal session started:
Quitting with an unexpected error: "exec: "-h": executable file not found in $PATH"

And the website disconnects.

When I try to connect two local terminal sessions, I get this error message on the host machine:

Failed to push SCTP packet: Failed handling chunk: TODO Handle Init when in state CookieWait
Terminal session started:
Quitting with an unexpected error: "exec: "-h": executable file not found in $PATH"

But the client terminal starts a terminal session, but without a console.

Any ideas what the problem might be?

The SCTP packet issue needs to be fixed in pions/webrtc, but shouldn’t affect the handshake in most cases.

I believe you have an issue with argument order. The cmd issue can’t be followed by any other args. See webtty -h

Ah, that was my issue! I was running ./webtty -cmd right off the bat, which messed with the execution! Fixed by just running ./webtty with no arguments