Trying from localhost but not getting

$client->setRedirectUri('http://localhost:9080/getdetailsgoogleplus/oauth2callback'); 

any body help me

all process completed but Final step getting error
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

Google cannot redirect to localhost. If you use your external IP address and allow your router to forward to your machine, then it may work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.