question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview link broken if using non default port

See original GitHub issue
  • OS: macOS 10.15.6
  • Version of IPFS Desktop: 0.13.2

Describe the bug If IPFS Desktop is not using the default port (8080) the link to preview it still uses 8080, which is incorrect. I’m running another service that’s holding port 8080 (nginx) so IPFS will use 8081 instead. I see "Gateway": "/ip4/127.0.0.1/tcp/8081", in my config file. When i click the link below it opens http://localhost:8080/ipfs/<cid> which is actually routed to nginx and I get a 404. If I manually change the port in the url to 8081 things work correctly.

Screen Shot 2020-12-31 at 3 17 11 PM

To Reproduce Steps to reproduce the behavior:

  • Change the Gateway port in ~/.ipfs/config to 8081 ("Gateway": "/ip4/127.0.0.1/tcp/8081",)
  • Restart IPFS Desktop
  • Try to open a pinned file, or any file via the localhost gateway api

Screenshots If applicable, add screenshots to help explain your problem. Screen Shot 2020-12-31 at 3 20 58 PM

Additional context Add any other context about the problem here.

combined.log (error log empty)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
msfeldsteincommented, Jan 4, 2021

No it still persists. The steps i just took were

  • Close IPFS desktop via menubar icon -> quit
  • Start up a webserver to hog port 8080 PORT=8080 yarn start in a create-react-app app
  • Launch IPFS Desktop
  • It asks if i want to use 8081 instead, and i say yes
  • Open my pinned files and open one, i still get port 8080
  • Close IPFS desktop via menubar icon -> quit
  • Launch IPFS Desktop
  • There is no dialog about which port to use
  • I still see the same problem where it launches urls with port 8080

On Mon, Jan 4, 2021 at 8:50 AM Marcin Rataj notifications@github.com wrote:

I suspect we read port from config during HTTP API client initialization, and we never update it again.

@msfeldstein https://github.com/msfeldstein can you confirm the issue goes away if you fully Quit via menubar and start IPFS Desktop again?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ipfs-shipyard/ipfs-desktop/issues/1726#issuecomment-754087866, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABHK3YLJDAI5LWXI6DMSZDSYHWXFANCNFSM4VPZ6EZQ .

0reactions
github-actions[bot]commented, Dec 17, 2022

This issue was closed because it is missing author input.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to preview/link to existing post - WordPress.org
The problem is that attempting to preview the post from the editor, or attempting to access it from the “Recent posts” link on...
Read more >
How to Fix the 'Preview Could Not Be Loaded' Error - Elementor
Go to your WP Admin > Settings > Permalinks section, select the Plain option, click Save Changes, and see if this helped. When...
Read more >
How to set a static port for Brackets live preview?
My application is using localstorage and in order to test and make sure everything is working properly, I wanted to set a specific...
Read more >
running ASP.net application on a different port - Microsoft Q&A
One thing you need to know is that https use 443 as default port. So only 443xxx ports can be used by https....
Read more >
Unfurling links in messages - Slack API
Classic link unfurling is the default treatment for links posted into Slack. When a link is spotted, Slack crawls it and provides a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found