Ionic serve --address not working


Im developing an application using ionic 2. I want to test my application using a specific ip address, but when I use ionic serve --address IPADDRESS, it only work if I put the IP of my device, if I use another ip address it gives me the following error.

There was an error serving your Ionic application: RangeError: “port” argument must be >= 0 and < 65536
at assertPort (internal/net.js:17:11)
at Server.listen (net.js:1395:5)
at isPortTaken (/usr/local/lib/node_modules/ionic/lib/utils/serve.js:52:4)
at t (/usr/local/lib/node_modules/ionic/lib/utils/serve.js:24:12)
at /usr/local/lib/node_modules/ionic/lib/utils/serve.js:28:14
at _fulfilled (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/ionic/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:108:17)

I have tried ionic serve --address IPADDRESS --port PORT but the error continues to appear. I have also tried ionic address, but nothing is shown in the my terminal, nothing happens.