remote-impress
remote-impress copied to clipboard
Use port other than 80?
Hi,
I'd like to thank you for this great tool first! It is awesome!!
Is it possible to use remote-impress on a port different than 80? I have apache running on 80 and I'd like to run remote-impress on some other port. This would allow me to run presentation and remote on same computer.
Is that possible?
JAnez
Sure. Just set up RMPORT env variable as you want. What OS do you use?
Eldar Djafarov
sr. Web Developer in Luxoft
JS Maniac http://eldar.djafarov.com http://twitter.com/edjafarov
On Sun, Jun 3, 2012 at 10:02 PM, Janez Urevc < [email protected]
wrote:
Hi,
I'd like to thank you for this great tool first! It is awesome!!
Is it possible to use remote-impress on a port different than 80? I have apache running on 80 and I'd like to run remote-impress on some other port. This would allow me to run presentation and remote on same computer.
Is that possible?
JAnez
Reply to this email directly or view it on GitHub: https://github.com/edjafarov/remote-impress/issues/3
Ubuntu 12.04.
THX. I'll try that.
Hm... Does not help. I still get:
info - socket.io started warn - error raised: Error: listen EADDRINUSE
are you setting it up like $ export RMPORT=3000 ??? if it is not working try to check env variables. It should. Contact me if it's not:)
Just like this. Will this set the remote's port or webserver's port?
I am currently running apache on 80 and I'd like to run remote on 8081.
It should set up both. Giver me few hours I will make it configurable from commandline. I.e. remote port=8081 host=yourHostName Eldar Djafarov
sr. Web Developer in Luxoft
JS Maniac http://eldar.djafarov.com http://twitter.com/edjafarov
On Mon, Jun 4, 2012 at 9:26 AM, Janez Urevc < [email protected]
wrote:
Just like this. Will this set the remote's port or webserver's port?
I am currently running apache on 80 and I'd like to run remote on 8081.
Reply to this email directly or view it on GitHub: https://github.com/edjafarov/remote-impress/issues/3#issuecomment-6093080
Great. Thanks!
Now I managed to start remote-impress on port 8899. It starts fine and displays it's welcome page. However, when I add
<script src="http://localhost:8899/socket.io/socket.io.js"></script>
<script src="http://localhost:8899/remote.js"></script>
loading of remote fails. It looks like this happens because presentation tries to load remote from port 80
http://localhost/socket.io/1/?t=1338793733046
Failed to load resource: the server responded with a status of 404 (Not Found)
I took a look at the code and I managed to make it work. My solution is hardcoded, but it still points out where is the problem.
diff --git a/remote.js b/remote.js
index 91a5282..8c0adc0 100755
--- a/remote.js
+++ b/remote.js
@@ -7,7 +7,7 @@ var events = require('events').EventEmitter;
var ejs = require('ejs');
var fs = require('fs');
var observer = new events();
-var host = process.env.RMHOST;
+var host = process.env.RMHOST + ':8899';
var remotes = {};
var getIp = require('./getIP.js').getIP;
I am not fammiliar with node.js at all, so excuse me if I totally missed the point.
I agree that is stupid. I need to change the code:) and write some more docs. although you can change RMHOST variable to yourhostname:8899 rather than yourhostname instead of hardcoding it.
Oh, yes. I am so stupid :)
No problem. It is a great tool. I will use it a lot.
Would it be possible to control more slideshows at once? Presenter would open it's presentation and give people link, that would attach their presentations to the same remote. That would be really useful for sessions beeing streamed over internet.