Showing results for 
Search instead for 
Did you mean: 
We want to be here for you when you need us! Today, Saturday 01/19, support will be open 10:00 am - 8 pm ET. Check out our help center for all the ways to get in touch with us.

Generalizing the Redirect URI for localhost

Occasional Contributor

Generalizing the Redirect URI for localhost

This may be a dumb question but there goes:


My redirect URI is http://localhost:"somenumber"/rest of the URL. My problem is "somenumber" changes based upon the computer used so my team members get errors.


What should I put in my webconfig and in the Constant Contact Application textbox in order to make it generic so that any localhost will work?


Re: Generalizing the Redirect URI for localhost

Hello @DavidL7089,


The number listed after the localhost is the port number that the request is trying to connect to; port 8080 is the very common port for web traffic. Pretty much every computer should be able to use this port unless your network/computer has it blocked for some reason. If it is blocked then you would either need to unblock it or pick a different port to use on all computers.


The redirect URI can only be set to one thing per API Key. The only way to use different redirect URIs is to use multiple API Keys.

Jimmy D.
Tier II API Support Engineer
Occasional Contributor

Re: Generalizing the Redirect URI for localhost

I see. Thank you.


BTW, on your site, you have some extra html sticking out at the bottom that looks like //]]> 

Just letting you guys know.

Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!