I know this plugin might be dead and no longer supported by the developer, but im trying to do the remote connection, and long story short i cannot find "engine.js" or how to open such file. The plugin folder has "common.js", but its not very helpful, and "default-keyboard.html" does contain lines like:
var ws = new WebSocket('ws://localhost:5001/ws');
from
is there away i can change it from localhost to a ip ?
I didn't think someone will need this, but it is possible. Imagine you need to run server at
192.168.1.123:12345
1. Find line in
engine.js:
var ws = new WebSocket('ws://localhost:5001/ws'); and change it to:
var ws = new WebSocket('ws://192.168.1.123:12345/ws');
2. Run executable with parameter:
Zergatul.Obs.InputOverlay.exe --urls http://192.168.1.123:12345/
In the log you should see:
Code:
info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://192.168.1.123:12345
Why do you...
but the version im using (v2.2.3) has "default-keyboard.html" contain lines like:
let ws = new WebSocket('ws://' + location.host + '/ws');
It really feels like all i gotta do is simple replace of a variable (like "localhost" to a "ip address") but the developer is not good at explaining anything, and i just cannot find "engine.js" file or how to open in the way it is explained. So replacing the line like:
let ws = new WebSocket('ws://' + location.host + '/ws');
to
let ws = new WebSocket('ws://' + 192.168.???.??? + '/ws');
and applying "--urls
http://192.168.???.???:12345/" at the shortcut of the [*.exe] opens an empty window for 5 sec then shuts down. So i dont know how to enable to see any log file of this plugin, and like a said earlier, this developer never explains anything well, so i need help generating a log for this plugin. Sometimes, very rarely, it shows some messages, and i managed to quickly copy&paste:
Unhandled exception. System.Net.Sockets.SocketException (10049): The requested address is not valid in its context.
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass30_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IEnumerable`1 listenOptions, AddressBindContext context, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
at Zergatul.Obs.InputOverlay.Program.Main(String[] args) in C:\Users\Zergatul\source\repos\Zergatul.Obs.InputOverlay\src\Program.cs:line 12
Of course, i am OBS plugin illiterate, so i have no idea whats going wrong with the changes i made.
I know this post ended up much longer than intended, but the developer is not good at explaining anything at all, and it feels like a simple replace of a variable from "localhost:5001" to "ip address of the remote PC" is all i have to do, so im really desperate maybe one savvy soul can help me see the line:
info: Microsoft.Hosting.Lifetime[14]
Now listening on:
http://192.168.???.???:12345/
Thank you so much for reading such long and superficial issue and the solution to this remote connection will be greatly appreciated.