Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Networking > localhost socket connection

Reply
Thread Tools Display Modes

localhost socket connection

 
 
PRSGuitarPlayer
Guest
Posts: n/a

 
      04-16-2008
Greetings:

I have an application that performs a socket connection to a local server
with an address of "localhost," 127.0.0.1 and a port of 3490. The local
server returns a web page using the default browser established in the Vista
OS.

However, when the socket connection is performed, a message appears with a
request to connect to the internet or remain offline. If "offline" is
selected, the web page appears to be taken from cache and not updated. If
"connect" is selected, the web page is updated but then a request is received
to connect to the Inrernet using a DSL connection that is configured in the
system. Although the web page returned from the local server is then updated
with new data, it is necessary to cancel the DSL connection request. This
behavior occurs with each socket connection to the localhost server.

Windows XP does not exhibit this behavior. Rather, Xp makes the connection
to the local server without any messages concerning requests to connect to
the internet.

I looked at Windows Explorer to see if I could find any relavent
configuration problems, but I found none.

How do I stop this unwanted Internet connection behavior when performing
socket connections to a localhost server?

Any suggestions are greatly appreciated.

Thanks
Roy W.


 
Reply With Quote
 
 
 
 
AJR
Guest
Posts: n/a

 
      04-17-2008
Confused here - if the application is on a computer other than the "local
server" connecting to "Localhost" would mean it is connecting to the
computer on which it is installed.

Local host, or it's address 128.0.0.1, provides a means of "pinging" a
computer from it's own keyboard - primarily as a means of checking it's
TCP/IP configuration.


"PRSGuitarPlayer" <> wrote in
message news:51B39228-4866-41E4-B20B-...
> Greetings:
>
> I have an application that performs a socket connection to a local server
> with an address of "localhost," 127.0.0.1 and a port of 3490. The local
> server returns a web page using the default browser established in the
> Vista
> OS.
>
> However, when the socket connection is performed, a message appears with a
> request to connect to the internet or remain offline. If "offline" is
> selected, the web page appears to be taken from cache and not updated. If
> "connect" is selected, the web page is updated but then a request is
> received
> to connect to the Inrernet using a DSL connection that is configured in
> the
> system. Although the web page returned from the local server is then
> updated
> with new data, it is necessary to cancel the DSL connection request. This
> behavior occurs with each socket connection to the localhost server.
>
> Windows XP does not exhibit this behavior. Rather, Xp makes the
> connection
> to the local server without any messages concerning requests to connect to
> the internet.
>
> I looked at Windows Explorer to see if I could find any relavent
> configuration problems, but I found none.
>
> How do I stop this unwanted Internet connection behavior when performing
> socket connections to a localhost server?
>
> Any suggestions are greatly appreciated.
>
> Thanks
> Roy W.
>
>



 
Reply With Quote
 
PRSGuitarPlayer
Guest
Posts: n/a

 
      04-17-2008
Hello AJR:

Actually, AJR, the localhost IP 127.0.0.1 is a "private" IP used for
interprocess communications. It is just a special IP that is used for
communications between 2 or more executables on the same computer systrem.

Ping, on the other hand, is a UDP not TCP protocol tool to test the
operability of a connection between 2 IP end points. The IP end points can
be either private or public IP's

My application, which resides on a single computer system, consists of 2
executables in the client/server model. The client sends a request to the
server for a web page. The client connects to the server using a standard
TCP socket connection using 127.0.0.1 (localhost in the System Hosts file)
with a port of 3780. The server "listens" for the connection request,
establishes the connection, and sends back to the client the web page that
was requested.

The application does not function to access the external Internet. Yet, the
Vista OS displays a subwindow which requests a connection to the Internet.
The internal configuration of the computer does include a DSL Internet
configuration but the DSL link is not connected as the application does not
requiire it. Vista, however, seems to be forcing the request on a localhost
connection.

Now on windoes XP, this connection behavior does not occur. I am not sure
if this a OS bug, a valid Vista functional change, or some configuration
problem.



"AJR" wrote:

> Confused here - if the application is on a computer other than the "local
> server" connecting to "Localhost" would mean it is connecting to the
> computer on which it is installed.
>
> Local host, or it's address 128.0.0.1, provides a means of "pinging" a
> computer from it's own keyboard - primarily as a means of checking it's
> TCP/IP configuration.
>
>
> "PRSGuitarPlayer" <> wrote in
> message news:51B39228-4866-41E4-B20B-...
> > Greetings:
> >
> > I have an application that performs a socket connection to a local server
> > with an address of "localhost," 127.0.0.1 and a port of 3490. The local
> > server returns a web page using the default browser established in the
> > Vista
> > OS.
> >
> > However, when the socket connection is performed, a message appears with a
> > request to connect to the internet or remain offline. If "offline" is
> > selected, the web page appears to be taken from cache and not updated. If
> > "connect" is selected, the web page is updated but then a request is
> > received
> > to connect to the Inrernet using a DSL connection that is configured in
> > the
> > system. Although the web page returned from the local server is then
> > updated
> > with new data, it is necessary to cancel the DSL connection request. This
> > behavior occurs with each socket connection to the localhost server.
> >
> > Windows XP does not exhibit this behavior. Rather, Xp makes the
> > connection
> > to the local server without any messages concerning requests to connect to
> > the internet.
> >
> > I looked at Windows Explorer to see if I could find any relavent
> > configuration problems, but I found none.
> >
> > How do I stop this unwanted Internet connection behavior when performing
> > socket connections to a localhost server?
> >
> > Any suggestions are greatly appreciated.
> >
> > Thanks
> > Roy W.
> >
> >

>
>
>

 
Reply With Quote
 
PRSGuitarPlayer
Guest
Posts: n/a

 
      04-22-2008
Hello:

I found the problem. Windows Explorer, Internet Options, Connections was
set to "Dial whenever a network connction is not present."

I had to set the opetion to "Never dial a connection" to pervent the
unwanted Internet connection request when perform a socket connection to
localhost, 127.0.0.1.

Window XP does not require this change. Thus, this is a difference in
behavior between XP and Vista.

RW

"PRSGuitarPlayer" wrote:

> Greetings:
>
> I have an application that performs a socket connection to a local server
> with an address of "localhost," 127.0.0.1 and a port of 3490. The local
> server returns a web page using the default browser established in the Vista
> OS.
>
> However, when the socket connection is performed, a message appears with a
> request to connect to the internet or remain offline. If "offline" is
> selected, the web page appears to be taken from cache and not updated. If
> "connect" is selected, the web page is updated but then a request is received
> to connect to the Inrernet using a DSL connection that is configured in the
> system. Although the web page returned from the local server is then updated
> with new data, it is necessary to cancel the DSL connection request. This
> behavior occurs with each socket connection to the localhost server.
>
> Windows XP does not exhibit this behavior. Rather, Xp makes the connection
> to the local server without any messages concerning requests to connect to
> the internet.
>
> I looked at Windows Explorer to see if I could find any relavent
> configuration problems, but I found none.
>
> How do I stop this unwanted Internet connection behavior when performing
> socket connections to a localhost server?
>
> Any suggestions are greatly appreciated.
>
> Thanks
> Roy W.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
socket connection fuchee99 Windows Vista Performance 1 12-26-2007 12:27 PM
Memory configurations in socket?2x256 socket 1/3 and 2x512 socket GT Windows Vista Hardware 1 11-25-2007 05:18 AM
Setting up to use localhost Larry S. Windows Vista Administration 0 02-26-2007 06:54 AM
VPN and localhost jc from switzerland ;-) Windows Vista Networking 0 01-25-2007 05:23 PM
localhost Web features Jassim Rahma Windows Vista Administration 0 07-02-2006 09:16 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59