Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextJS pings localhost server than the remote app server. #4005

Closed
gauravdhiman opened this issue Mar 14, 2018 · 1 comment
Closed

NextJS pings localhost server than the remote app server. #4005

gauravdhiman opened this issue Mar 14, 2018 · 1 comment

Comments

@gauravdhiman
Copy link

I am running my app server (NextJS + FeathersJS) on localhost:3030 and for mobile testing I am accessing it from my mobile Chrome browser. I am seeing on mobile Chrome browser, the ping is failing as NextJS is trying to ping localhost which obviously will not be accessible from mobile browser. Can't we configure to ping the app server domain / IP:PORT than localhost always ? Looks like due to this the SocketIO (realtime updates of data) functionality in app is not working on mobile browser. The same functionality is working perfectly fine when tested on Desktop browser of localhost machine. PFA the screenshot. Took screenshot of mobile using Chrome's remote debug feature.
ping-from-mobile-browser

@gauravdhiman gauravdhiman changed the title NextJS pings localserver than the app server. NextJS pings localhost server than the remote app server. Mar 14, 2018
@gauravdhiman
Copy link
Author

Apologies, it was my wrong configuration of App Server. I should not have run to report it :-(
I don't think there is an option to delete an issue, so closing this issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant