Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When i try to login it takes about 2 to 4 minutes and after that it shows an error that says:

P2P connect failed.

Note that Skype was working with me yesterday.

Thanks in advance

share|improve this question
1  
Type the following in your terminal rm -rf ~/.Skype,this will delete all your settings but then it works. –  karthick87 Dec 22 '10 at 18:06
add comment

5 Answers 5

up vote 1 down vote accepted

The Skype server takes the IP addresses of all logged in users and exchanges them to those wishing to connect. If the Skype program had the ability to either accept an IP address or loads the last used IP address, the Skype server need not be invoked for a simple P2P connection unless a dynamically assigned IP address changes. If the Skype server is down, the new IP address may be manually input when Skype programs the function into the next revision of Skype.

share|improve this answer
add comment

This actually isn't Ubuntu related, they've had outages all day.

share|improve this answer
add comment

It is not a Ubuntu specific issue. Skype got a problem in their network. Now things are retuning to normal. You can find more updates on skype's twitter page: https://twitter.com/skype

share|improve this answer
add comment

Found my solution here: http://blog.netflowdevelopments.com/2012/03/10/p2p-connect-failed-error-with-skype/

Glad I checked there as a ton of other sites just told me to delete the entire skype directory

share|improve this answer
    
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Peachy Nov 8 '12 at 1:37
add comment

Try removing shared.xml from ~/.Skype/ and restarting Skype.

Here's a kludge of a script that does it for you. Just copy it into fix-skype.sh, run chmod +x fix-skype.sh and then ./fix-skype.sh:

#!/bin/bash  
if [ -e ~/.Skype/shared.xml ]  
then  
    echo "Stopping Skype"  
    killall -HUP skype  
    echo "Moving shared.xml"  
    mv ~/.Skype/shared.xml ~/.Skype/shared.xml.bk  
    echo "Restarting Skype"  
    skype &  
else  
    echo "Can't find shared.xml - this solution will not work"  
fi  

If the problem recurs, run the script again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.