remote-impress icon indicating copy to clipboard operation
remote-impress copied to clipboard

Use port other than 80?

Open slashrsm opened this issue 12 years ago • 11 comments

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

slashrsm avatar Jun 03 '12 19:06 slashrsm

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

edjafarov avatar Jun 03 '12 19:06 edjafarov

Ubuntu 12.04.

THX. I'll try that.

slashrsm avatar Jun 03 '12 19:06 slashrsm

Hm... Does not help. I still get:

info - socket.io started warn - error raised: Error: listen EADDRINUSE

slashrsm avatar Jun 03 '12 19:06 slashrsm

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:)

edjafarov avatar Jun 04 '12 06:06 edjafarov

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.

slashrsm avatar Jun 04 '12 06:06 slashrsm

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

edjafarov avatar Jun 04 '12 06:06 edjafarov

Great. Thanks!

slashrsm avatar Jun 04 '12 06:06 slashrsm

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)

slashrsm avatar Jun 04 '12 07:06 slashrsm

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.

slashrsm avatar Jun 04 '12 07:06 slashrsm

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.

edjafarov avatar Jun 04 '12 07:06 edjafarov

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.

slashrsm avatar Jun 04 '12 09:06 slashrsm