Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to my own machine 2

Status
Not open for further replies.

Supra

Programmer
Dec 6, 2000
422
US
Hi folks,

I'm trying to connect to my own machine from my own server, and I'm not having much luck. I wrote a simple program to monitor connection requests and a simple Perl script to attempt to connect to it using both LWP::UserAgent and IO::Socket::INET, but neither worked. I have my router forwarding the appropriate port to my machine. The strange thing is, when I use the free online "anonymizer" with my IP:port, it works fine! I have tested LWP on Google and other sites, and it pulls them fine, so yes LWP is installed. Can anyone provide some sample code that you know works correctly so I can try it?
 
Hi Mike,

Unfortunately I cannot use Shadowsurf. I need my Perl script to send and receive data from my machine. Besides which, it's not a very good idea to use someone else's website to connect to your local machine. There are security risks, the connection is much slower, etc etc.

Interestingly, I tried this with Ajax earlier and it worked locally (obviously) but when I uploaded the page to my server, I was given a permission denied error.
 
Maybe GoDaddy has some sort of restriction about outgoing contact with sites through IP address as opposed to DNS name resolution? Try contacting some other known sites through IP instead of their DNS equivalents and see what happens.

It's probably a long shot but you definitely have a brain teaser on your hands.

The fact that you can connect from Shadowsurf would suggest that it is not your own network. Being able to connect to other sites through your script suggests it is not the script.

I'm thinking it has to be something with the GoDaddy environment. Some sort of network routing issue or other restriction.....
 
I'm thinking you're right ned.

After reading your post, I was reminded of a similar issue with GoDaddy hosting where they required that any script accepting user input be taint checked. At first I was fine with it, but as I started writing more scripts I started noticing more problems. At one point, LWP did not work. I emailed GoDaddy Support and the response was, more or less, "We have disabled LWP to prevent users from abusing it." Right away I started looking for a new host, but before I found one, GoDaddy released a new version of their online control panel. After the upgrade, I was shocked to find that LWP was no longer disabled. Since then, I haven't needed to use LWP for a project like this, so I deferred from my plan to find new hosting. All that being said, I think it's an extreme possibility that GoDaddy has taken steps to "safen" LWP rather than completely disable it (probably due to numerous complaints) and my script is not working as a result.

However, I did attempt to connect to GoDaddy by its numeric address with :80 appended ( and it worked. It was a little slower, but it worked. Perhaps if the address cannot be resolved, GoDaddy blocks you from connecting to it? I'm going to email them as soon as I click Submit Post and I believe I will have my answer. Until then, thank you ned for thinking outside the script - that's worth a star to me.
 
Yep, GoDaddy says, "We do not allow that kind of connection." So it's time to move to a new host. It's been recommended that I check out so I wrote them an email asking if they support the kind of connection I want.

Anyway, thanks to everyone for all the time you put into this thread!!!!
 
Hi Supra,

Thanks for the update! It's too bad GoDaddy won't support what you are trying to do but at least now we know what the issue was.

In fact this is very useful to me personally as I was considering GoDaddy as a potential host for a project I've been thinking about starting and now maybe I should check out all the alternatives more closely.

Good luck!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top