I did a test, Mirko is right, in linux if web2py is not shut down right it cannot run on any port other than what it initially run with.
Other thing was my own error, for public IP I was using "-i hostname" this did not work. When I put exact IP address number 192.168.0.0 it works. Now the question is, my IP is dynamic, is there any way to run web2py from public IP always without the need to enter the IP address? Web2py it self gets the IP address, is there anyway to use that? sexta-feira, 30 de Janeiro de 2015 às 08:14:48 UTC-5, Aydin S escreveu: > > I found out what makes the root cause and any suggestion to resolve this > is very appreciated: > > If I run the web2py by local IP, it has no problem with any port. But, if > I run the web2py from public IP of machine (192.168.0.0 for example) it > gives the error above. > And this is limited to linux, in windows it works fine with the public IP. > > Any idea what's going on? > > > sexta-feira, 30 de Janeiro de 2015 às 08:06:26 UTC-5, Aydin S escreveu: >> >> Thanks for the replies. >> >> Mirko, do you mean I should wait for couple of minutes and run web2py and >> it will work? >> >> Michele, here is the results of the netstat -tanp >> >> >> PID/Program name >> tcp 0 0 0.0.0.0:22 0.0.0.0:* >> LISTEN 832/sshd >> tcp 0 0 127.0.0.1:3950 0.0.0.0:* >> LISTEN 819/xrdp-sesman >> tcp 0 0 0.0.0.0:3889 0.0.0.0:* >> LISTEN 803/xrdp >> tcp 0 0 192.168..0.0:20 192.168.0.0:1111 >> ESTABLISHED 1144/0 >> tcp6 0 0 :::8080 :::* >> LISTEN 851/apache2 >> tcp6 0 0 :::80 :::* >> LISTEN 1/systemd >> tcp6 0 0 :::22 :::* >> LISTEN 832/sshd >> tcp6 0 0 :::3000 :::* >> LISTEN 1/systemd >> >> >> sexta-feira, 30 de Janeiro de 2015 às 03:15:55 UTC-5, Michele Comitini >> escreveu: >>> >>> as root do: >>> # netstat -tanp >>> >>> and see what you get >>> >>> >>> >>> 2015-01-30 5:28 GMT+01:00 Mirko Scavazzin <mscav...@gmail.com>: >>> >>>> *TIME_WAIT** is the state that typically ties up the port for several >>>> minutes after the process has completed.*The length of the associated >>>> timeout varies on different operating systems, and may be dynamic on some >>>> operating systems, however typical values are in the range of one to four >>>> minutes. >>>> HTH >>>> Le 30 janv. 2015 05:16, "Aydin S" <hsof...@gmail.com> a écrit : >>>> >>>> Hi, I'm trying to run web2py from linux. However, it fails with this >>>>> error: >>>>> >>>>> ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other >>>>> process and it won't share. >>>>> WARNING:Rocket.Errors.Port8000:Listener started when not ready. >>>>> >>>>> I have tried various ports like 8001, and it fails still. There is no >>>>> other process using these ports. By the way, this does not happen in >>>>> windows. I searched in the group for this problem and saw some posts but >>>>> no >>>>> help from those. >>>>> Any help or advice is appreciated. >>>>> >>>>> -- >>>>> Resources: >>>>> - http://web2py.com >>>>> - http://web2py.com/book (Documentation) >>>>> - http://github.com/web2py/web2py (Source code) >>>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "web2py-users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to web2py+un...@googlegroups.com. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+un...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.