khtan (68) [Avatar] Offline
#1
When running gulp, a server is started on 127.0.0.1:8080.

I have a conflict on 127.0.0.1:8080 with another application, and would like
to change the port and url if I can.

When I searched the files, only index.js has a hardcoded "8080" in it, but there is no source
that contains 127.0.0.1.

Just changing the line in index.js from
server.listen(8080, ... ) to server.listen(8085, ... is not sufficient.

Hope some instructions can be provided to accomplish this.

Thanks
tempusfugit (144) [Avatar] Offline
#2
Did a fresh install from via git clone https://github.com/RxJSInAction/rxjs-in-action.git and followed the remaining instructions, then changed in rxjs-in-action/index.js to
// Spin up the server instance
server.listen(3000, () => {
  console.log('\n\nRxJS in Action! on port:', server.address().port);
});

and then after $ npm start the page was available on at http://localhost:3000/.

The actual URL is configured by your computer - for example the /etc/hosts file:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost
192.168.64.2    kubia.example.com
Paul Daniels (15) [Avatar] Offline
#3
tempusfugit is correct. If you would like to change the port that is being used you will need to change the port in
index.js
. The URL is determined by the system (127.0.0.1 is an alias for "localhost").