SunQuest
           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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 25th, 2008, 07:13 AM
palnatisatish palnatisatish is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 3 palnatisatish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 12 m 58 sec
Reputation Power: 0
Accessing Public Ip Inside Lan

Hi, Iam a network admin in a software company. I have a problem with a Public IP. I have webserver in my LAN having a local ip 192.168.3.5 which is Natted with a Public Ip 122.169.X.X in cisco router. now the problem we are facing is : from outside Lan people are able to access the webserver using Public IP, But we are unable to access webserver using Public IP from inside Lan . ( We are able to access using local IP 192.168.x.x). What is the reason? Is there any NAT related issue in router behind that? Can we access a Public IP from inside LAN ? plz help me..!

Reply With Quote
  #2  
Old April 25th, 2008, 10:22 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,680 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 15 h 25 m 42 sec
Reputation Power: 688
Your router or firewall probably doesn't allow you to access the external IP from inside your LAN, many block such access for security reasons.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old April 27th, 2008, 04:19 PM
ITADopes's Avatar
ITADopes ITADopes is offline
War Eagle
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,124 ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 8 h 21 m 55 sec
Reputation Power: 152
You're inside the LAN, same as your server, so there's no way to get to the public, NAT'd address. The address is only tranlated when there's inbound or outbound traffic through the WAN port of your router. Your traffic, from the LAN, never reaches the WAN port.

Use the private IP. What's the real problem you're having here?

Dopes
__________________
I am nothing now
and I'll be nothing when
this nothing world
has it's nothing end.
-- Violent Femmes

Reply With Quote
  #4  
Old April 27th, 2008, 08:41 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,680 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 15 h 25 m 42 sec
Reputation Power: 688
Quote:
You're inside the LAN, same as your server, so there's no way to get to the public, NAT'd address.
My el-cheapo linksys router lets me use my external public IP from inside the LAN. I don't know if the router loops the traffic, of if it goes out to my gateway and then comes back, but it does work, which makes configuration of many web apps used internally much easier since the public IP shows up in the http headers, not an internal LAN ip.

Reply With Quote
  #5  
Old April 27th, 2008, 10:01 PM
PWD's Avatar
PWD PWD is offline
Untreated PHP Addict
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: 127.0.0.1
Posts: 652 PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 8 h 27 m 42 sec
Reputation Power: 166
All good firewalls/routers (such as Cisco) will reject external traffic that states it's coming from a non-routable (private) IP address as it looks as if someone s attempting to spoof the source of the request...

If you have a dedicated internal DNS server (such as in an AD domain) you can create a new forward lookup zone in DNS (or if you're using your internet FQDN, just create a host record) and create a 'WWW' host record to point to the LAN IP address of your web server.

If this is not possible, simply map the domain name to LAN IP address in your 'hosts' file.
Comments on this post
hiker agrees!
__________________
PWD
MCSE, Security+

NEW Windows Administration Forum
Admin Source
Could REALLY, REALLY, REALLY use you and your issues!

Last edited by PWD : April 27th, 2008 at 10:03 PM.

Reply With Quote
  #6  
Old April 28th, 2008, 03:08 AM
ITADopes's Avatar
ITADopes ITADopes is offline
War Eagle
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,124 ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 8 h 21 m 55 sec
Reputation Power: 152
Quote:
Originally Posted by Doug G
My el-cheapo linksys router lets me use my external public IP from inside the LAN. I don't know if the router loops the traffic, of if it goes out to my gateway and then comes back, but it does work, which makes configuration of many web apps used internally much easier since the public IP shows up in the http headers, not an internal LAN ip.


In the headers to what? Another computer/server on your inside LAN on the private IP addresses? Or to a server out on the Internet?

Reply With Quote
  #7  
Old May 5th, 2008, 01:39 AM
palnatisatish palnatisatish is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 3 palnatisatish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 12 m 58 sec
Reputation Power: 0
Accessing public ip

Quote:
Originally Posted by ITADopes
You're inside the LAN, same as your server, so there's no way to get to the public, NAT'd address. The address is only tranlated when there's inbound or outbound traffic through the WAN port of your router. Your traffic, from the LAN, never reaches the WAN port.

Use the private IP. What's the real problem you're having here?

Dopes


Thanks for ur reply, I understood. But one thing I want to explain, before I didnot tell u full details of my NAT Config. Actually that webserver is not registered. It is under construction and It is tomcat server using port 8080. So for demo purpose of clients access, we natted our local system to the public IP like : ip nat inside source static tcp 122.169.200.103 8080 192.168.3.6 8080 ( I did port forwarding here, from outside to inside trafic translation is ok.. )


By this, outside people are able to reach the port 8080 of our local machine by that public ip we natted. But when we try to access the local machine which is natted with public ip for port 8080, Iam unable to access the contents in the browser. Here as you said , if a request arrives at my routers WAN interface my router translates that public IP into my Local Ip which is natted with. But if I ask the same PUblic IP from inside the lan by port no, where does that request go ..?

If I request my Public IP from inside the lan , what happens actually ? you said that my request never reaches the WAN port..! If it, where does It go? Can I redirect that by any configuration change (NAT, destination b) sothat It can reach my local machine, even I try to access with public IP.


one more question : Generally ISP gives us a public IP pool, those public ips are located where ? Is there any difference between Public Ip and WAN IP?

Thanks...

Reply With Quote
  #8  
Old May 5th, 2008, 04:35 AM
ITADopes's Avatar
ITADopes ITADopes is offline
War Eagle
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,124 ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level)ITADopes User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 8 h 21 m 55 sec
Reputation Power: 152
Here's probably what happens...

Your PC (SOURCE:192.168.3.2) makes a request for 122.169.200.103 (DEST).

1. Your router recieves the request and looks in the routing table. There is no route for 122.169.200.103, so the router forwards the packet towards the default route. The default route is towards the ISP, out of the WAN port.

2. Before the packet leaves the router, the SOURCE IP address is translated to a public IP. So the request is now for DEST 122.169.200.103 with a SOURCE of 122.169.200.102 (assuming).

3. The ISP receives a request for a DEST 122.169.200.103. The ISP looks in it's routing table and finds out that the route to that destination is the same interface that the request was just received on and it drops the packet. It's not going to forward a request back out the same interface it came in - that would create a routing loop (or it assumes).

May not be _exactly_ how it happens, but it's probably close.

Dopes

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > Accessing Public Ip Inside Lan


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 3 hosted by Hostway