Solved

LAN connection

Posted on 2001-08-13
15
205 Views
Last Modified: 2006-11-17
I am using HttpURLConnection method in a Java application.

I realised that it works if I am using a ISP connection ie a dial-up.  

But this does not work in a LAN. what am I missing in the settings??

How to resolve this??

If the LAN allows me to surf any pages I want, why can't I get connected to a web server thru this LAN??
0
Comment
Question by:TLTEO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
  • +4
15 Comments
 
LVL 3

Expert Comment

by:exorcist
ID: 6381232
Try to access a local page. i.e. make an HttpURLConnection to a webserver within this LAN. Maybe your LAN policies are that you have to use a proxy to access outside HTTP servers.
0
 

Author Comment

by:TLTEO
ID: 6381252
you are right, I can't access my own server page but I can access pages like yahoo and some locals as well.

In my browser, the LAN setting is set to common, as in other people's
0
 
LVL 3

Expert Comment

by:exorcist
ID: 6381285
I am kind of confused now. You cannot access your own server but you can access Yahoo?

Do you have a webserver in your LAN and did you try to open a connection with your Java application to this server?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:TLTEO
ID: 6381331
Sorry to confuse.  I use IE browser to access a webserver in my LAN (a normal index page), it failed, so is the Java application as well.

But I can access yahoo..  funny.

Just for my info, will LAN allow java application to access external servers.  I know it is a big too broadbase kind of question. What are the problem that might be imminent when using LAN.
0
 
LVL 3

Expert Comment

by:exorcist
ID: 6381848
Well, if you cannot access a webserver in your LAN with IE and you can access Yahoo, then something is wrong with the webserver in your LAN.

For the LAN, it doesnt make any difference if you use Java or your Browser. The only thing you might consider is that you might have a proxy configured in your Browser because your firewall doesnt allow direct connections.

If you can access yahoo with your IE, then try to access yahoo with your java application.
0
 
LVL 92

Expert Comment

by:objects
ID: 6382374
Check your browers proxy server settings.
Sounds like it could be using the proxy server for local url's, which the proxy server knows nothing about causing them to fail.
You need to bypass proxy server for local addresses.

0
 
LVL 3

Expert Comment

by:Sendoh
ID: 6382595
hi !
one suggestion is u can try setting ur application to point to ur proxy host under system properties :
    http.proxyHost
    http.proxyPort

detail refer to
http://www.ibiblio.org/javafaq/javafaq.html

under section 9.5

good luck !!
0
 
LVL 3

Expert Comment

by:exorcist
ID: 6383530
You should ask your Network Administrator about proxy configuration in your LAN.
0
 

Expert Comment

by:prabhuram
ID: 6383567
hei, i think the problem is within your proxy settings. the proxy settings include options  like "let the user applications access remote URLs" if it is set by the network administrator, then there'll be no punga for you to get everything done by your application.
prabhuram
prabhu_ram_99@yahoo.com
0
 
LVL 92

Expert Comment

by:objects
ID: 6386563
TLTEO can see remote URL's fine as far as I've understood.
The problem is with local URL.

See my above comment about browser proxy settings.
0
 

Author Comment

by:TLTEO
ID: 6418644
I think the prob lies in the firewall (I know nuts about this).  

Now I can access all pages all over the world, except my own internal webserver. Seems firewall banned a direct connection to the server within this LAN.
0
 
LVL 3

Expert Comment

by:exorcist
ID: 6418803
Maybe you are in a different subnet. Did you ask your network administrator about this?
0
 
LVL 92

Expert Comment

by:objects
ID: 6420159
Repeating above comment:

> Check your browers proxy server settings.
> Sounds like it could be using the proxy server for local > url's, which the proxy server knows nothing
> about causing them to fail.
> You need to bypass proxy server for local addresses.

0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7088105
Hi TLTEO,
You've requested to delete this question, but its status has remained as 'Pending Delete' because one or more comments have been added.  Normally, the only way to fully delete such a Question is to post a message to Community Support and ask for assistance.

EE is making a one-time database sweep to purge the Pending Delete Questions automatically.  During this sweep:

    TLTEO -- To allow the deletion to proceed:  Do nothing.
    EXPERTS -- Please DON'T POST a comment except to contest this deletion.

In the future, please refer to http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp#8 for instruction on deleting questions.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7112088
30 points refunded, moved to PAQ and closed...
Moondancer - EE Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Desingning Refactoring existing code 2 31
How do I remove an object from a 3 51
jboss 7.1 start up error 1 60
CSV file parsing thru Java 13 39
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question