Details
Description
I created a sample application. When I run the application, I am unable to access the application using "IP Address" instead of "localhost"
That is, the app is accessible at http://localhost:8080/sampleApp but not at http://192.168.1.11:8090/sampleApp (tried from the same computer and other one in same network with no luck).
Source attached.
-
Hide
- sampleApp.zip
- 25/May/11 4:08 AM
- 115 kB
- Bhagwat Kumar
-
- sampleApp/.project 0.5 kB
- sampleApp/.classpath 0.7 kB
- sampleApp/application.properties 0.1 kB
- sampleApp/target/stacktrace.log 0.0 kB
- sampleApp/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- sampleApp/web-app/WEB-INF/sitemesh.xml 0.6 kB
- sampleApp/web-app/.../applicationContext.xml 2 kB
- sampleApp/web-app/images/grails_logo.jpg 8 kB
- sampleApp/web-app/.../springsource.png 9 kB
- sampleApp/web-app/.../leftnav_midstretch.png 3 kB
- sampleApp/web-app/images/grails_logo.png 10 kB
- sampleApp/web-app/images/spinner.gif 2 kB
- sampleApp/web-app/images/favicon.ico 10 kB
- sampleApp/web-app/images/leftnav_top.png 3 kB
- sampleApp/web-app/.../apple-touch-icon.png 5 kB
- sampleApp/.../apple-touch-icon-retina.png 15 kB
- sampleApp/web-app/images/leftnav_btm.png 4 kB
- sampleApp/web-app/css/mobile.css 1 kB
- sampleApp/web-app/css/main.css 11 kB
- sampleApp/web-app/js/application.js 0.2 kB
- sampleApp/grails-app/.../BootStrap.groovy 0.1 kB
- sampleApp/grails-app/.../BuildConfig.groovy 1 kB
- sampleApp/grails-app/conf/Config.groovy 4 kB
- sampleApp/grails-app/.../DataSource.groovy 0.7 kB
- sampleApp/grails-app/.../UrlMappings.groovy 0.2 kB
- sampleApp/.../messages_es.properties 3 kB
- sampleApp/.../messages_it.properties 2 kB
- sampleApp/.../messages_pt_PT.properties 3 kB
- sampleApp/.../messages_sv.properties 3 kB
- sampleApp/.../messages_th.properties 5 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Hide
Ronny Løvtangen
added a comment -
I had the same problem.
Reasons you want to access an application from a different machine during development:
- Test from mobile devices
- Test from browsers on different OS (e.g. test with Internet Explorer on Windows, for developers running Linux or OS X)
- Show your manager, designer etc current progress without needing to deploy somewhere.
Show
Ronny Løvtangen
added a comment - I had the same problem.
Reasons you want to access an application from a different machine during development:
Test from mobile devices
Test from browsers on different OS (e.g. test with Internet Explorer on Windows, for developers running Linux or OS X)
Show your manager, designer etc current progress without needing to deploy somewhere.
Have you tried http://127.0.0.1:8080/sampleApp
(Also, there appears to be a typo in your description – is the port in the IP-version of the URL really supposed to be 8090?)
You might also want to check your router port settings to ensure port 8080 (or 8090) is not blocked.