LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2013, 02:38 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Can I in any way access an external static IP inside our LAN?


I used to access a particular webpage through:
Code:
http://localhost:8080/name/Name
Now, as I wished to access this webpage through a computer outside our
LAN, our IT people assigned a static IP to this computer of mine.

Now, when I try to access the following URL from my house, it works.
Code:
http://<staticIP>:8080/name/Name
Question:
Is it possible somehow to access that URL with the static IP inside our
office LAN?
How and why, please explain.

What more information should I present here?

openSUSE 11.4 64 bit

Last edited by TheIndependentAquarius; 03-30-2013 at 05:32 AM.
 
Old 03-30-2013, 09:26 AM   #2
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 65

Rep: Reputation: Disabled
This sounds like Network Address Translation (NAT) and IP forwarding has been configured.
[http://www.centos.org/docs/4/html/rh...-ipt-fwd.html].

You want to use an external IP address on the LAN? You would have to speak to the network guys about routing to the perimeter and back in.

Personally, I think a way better way of doing it is to configure DNS. Have external DNS point to the external address, and internal DNS pointing at the internal address. Then you have one address across the board...
 
1 members found this post helpful.
Old 03-30-2013, 04:55 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
"Is it possible somehow to access that URL with the static IP inside our
office LAN?
How and why, please explain."

That would depend on your topology and routing. Can't say but usually if a lan computer does have internet access it could also access a properly configured web page using either public or private IP addresses. It could depend on ports, ip addresses, firewalls, proxies, maybe even caches, dns, hostnames, and more.

Kind of unusual to put a port of 8080 to outside but not fully uncommon. Seems odd the company didn't tell you how to access it.

It would depend on too many things to say how unless you describe exactly your topology.

Is this some homework issue?
 
1 members found this post helpful.
Old 03-30-2013, 05:21 PM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by jefro View Post
Seems odd the company didn't tell you how to access it.
I think there may be a case that the company is trying to stop people using the internet while at work for their own purposes. If it isn't they would have made it easy to access the web outside the LAN.

Quote:
Originally Posted by jefro View Post
It would depend on too many things to say how unless you describe exactly your topology.
Which probably hasn't been divulged to the staff for the reason stated above

Somehow I wouldn't be surprised if this thread if answered contravenes LQ rule "Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed." There is a reason why external websites, or maybe the particular website you want to access, is not accessable. I'd be asking your IT staff why and get them to help you access it. The fact you appear to have not done this tells me this is something you probably shouldn't be doing and asking how to do it on LQ supports my suspicion that you are indeed breaking LQ rules.
 
Old 03-30-2013, 09:44 PM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by jefro View Post
Kind of unusual to put a port of 8080 to outside but not fully uncommon.
Actually, there is a software named openGTS. They have provided that URL ending with
":8080/track/Track".
That opens the login page of openGTS. We now want to open that page outside our LAN
as well as from inside. For inside there is localhost, for outside we needed
static IP. Our IT people have given us this static IP for one month for testing. Well,
that 8080 port has been asked by the software to be used. So, I don't know if there
would be any way by which we can access that URL from outside without using 8080?

Quote:
Originally Posted by jefro View Post
Seems odd the company didn't tell you how to access it.
In office we won't have any way of testing that static IP since it is not working on
the LAN.

IT people said that it is simply NOT possible to access that static IP inside the LAN,
but my senior thinks that it can be done so it should be done!
I don't know much about webservers so I thought of asking here.

Quote:
Originally Posted by jefro View Post
Is this some homework issue?
:-/

Thanks for responding to you and Ginola. Will study your responses in detail later this
day.

Last edited by TheIndependentAquarius; 04-01-2013 at 01:08 AM.
 
Old 03-31-2013, 03:18 PM   #6
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 65

Rep: Reputation: Disabled
Quote:
Originally Posted by Anisha Kaul View Post
IT people said that it is simply NOT possible to access that static IP inside the LAN,
but my senior thinks that it can be done so it should be done!
I don't know much about webservers so I thought of asking here.
Directly from the LAN, it cant, because they are on totally different subnets. The traffic needs to leave the LAN, hit the firewall somehow, invoke the LAN rule that they have set, and voila. Try a traceroute (tracert in windows-land) from your PC to the external IP and you'll see what I mean.

HTH.
 
1 members found this post helpful.
Old 03-31-2013, 07:25 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
The issue is still, can the lan access public IP addresses? Any address at all or is it air gap or fully disconnected or what? Is there some firewall/router inbetween lan and wan?

Normally people put an internal web page on their lan. Their lan also has access to the web. People might be able to contact that single server from either internal or external IP addresses but internal name would not translate to external addresses usually. Things like proxies may have some issues here also.

You could try telnet to that ip address with port 80 or 8080.

Last edited by jefro; 03-31-2013 at 07:28 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access server (behind a router) from LAN via external IP tungvs Linux - Networking 6 07-07-2008 05:33 AM
Connect from home to a computer inside an "external" LAN using port forwarding horacioemilio Linux - Networking 1 03-07-2008 04:36 AM
Iptables To Access LAN devices inside&Outside ActionTech DSL schenke Linux - Networking 5 01-02-2008 01:57 PM
can't access ftp server outside my LAN, fc4, ipcop, and static IP dazaau Linux - Networking 5 03-19-2006 10:41 PM
Apache 2 Server - Can't access it via ip address from inside LAN Robstro Linux - Networking 1 06-30-2004 02:50 PM


All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration