Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 11th, 2004, 09:03 PM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 80
The connection was refused when attempting to contact....

Here is my network configuration.

Someone in the wide world trying to contact my computer:

my public ip -> nats to an internal 10 address that is set on my router -> nats to a 192 address that is set on my computer

My problem:

When I try to browse my website (via my public ip) from outside my network everything works fine.

When I try to browse my website (via my public ip) from my computer, I get the message "The connection was refused when attempting to contact xxx.xxx.xxx.xxx".

If I connect to my website via "localhost", I can access the web server, but not all of my applications work properly. There is one application that requires complete url paths.

If I set the paths up to use localhost, then the site works fine internall when I connect via localhost, but the site does not work externally for someone trying to connect to my public ip.

If I set the paths up to use my public ip, then the site works fine for external users, but not when I try to connect via localhost.

If I try to type my own ip address in my browser, the connection is denied.

I am pretty sure the problem has to do with how my whole NAT structure is set up, but I am not sure how to troubleshoot it.

Any ideas?

Thanks,

Reply With Quote
  #2  
Old June 12th, 2004, 12:52 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
I'm not entirely sure about what I'm about to say, but I think that it is impossible to access your internal site using your external address. It looks to me like you have setup your network correctly. The way I would solve this, but it may not be what you want, would be to use domain names, rather than IP addresses, to browse the site. You could then setup a local DNS server which handled the domain internally, and you'd need to register the same domain for use externally.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #3  
Old June 12th, 2004, 02:27 PM
wanderer2 wanderer2 is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Sep 2003
Location: Oregon
Posts: 1,823 wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level)wanderer2 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 35 m 30 sec
Reputation Power: 384
perhaps a local LMhosts file with the correct #pre entry for the server name and ip address would solve this issue.

Reply With Quote
  #4  
Old June 19th, 2004, 02:00 AM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 80
Found the answer but it was none of the above. Turns out that the problem only occurs when I have a VPN connection initiated to my workplace. Turn of the VPN - everything works fine. Doh!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > The connection was refused when attempting to contact....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway