473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Localhost IP Addresses Other Than 127.0.0.1

We are developing an application in C# that runs on a PC and communicates
with a piece of equipment via the ethernet. For testing we have developed a
simulation of the equipment that we want to run on the same PC as the
application. We assigned the address 127.168.8.225 to the application and
127.168.8.129 to the simulation (both represent localhost). Under Windows
2000 this worked fine but when we upgraded to Windows XP it stopped working.
A possible clue is that on 2000 if I ping 127.168.8.225 the reply is from
127.168.8.225 but on XP the reply is from 127.0.0.1. Is this a change in XP
and does anyone know of a workaround.?
--
Jeff S.
Nov 17 '05 #1
6 8502
> application. We assigned the address 127.168.8.225 to the application
and
127.168.8.129 to the simulation (both represent localhost). Under


Assuming only one of them is listening on a socket, both the client and
server can use the same IP address. Try 127.0.0.1 for both?

Greetings,
Wessel
Nov 17 '05 #2
"=?Utf-8?B?SmVmZiBTLg==?=" <se*******@noemail.nospam> wrote in
news:54**********************************@microsof t.com:
to Windows XP it stopped working. A possible clue is that on 2000 if
I ping 127.168.8.225 the reply is from 127.168.8.225 but on XP the
reply is from 127.0.0.1. Is this a change in XP and does anyone know
of a workaround.?


Ping is not a reliable way to check what you seek.

Are you explicitly binding your server to an address? Also you should not use the 127.x block for
IP's, use 192.168.0.x or one of the other reserved LAN blocks.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
Nov 17 '05 #3
Hi,

IT should not be any problem really

I assume that you are binding each app to only one of the IPs ( You can usi
a IPEndPoint instance for this)

Do you know if you the service is listening? doing a telnet to that port?

what if you set different ports ? can you connect then?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Jeff S." <se*******@noemail.nospam> wrote in message
news:54**********************************@microsof t.com...
We are developing an application in C# that runs on a PC and communicates
with a piece of equipment via the ethernet. For testing we have developed
a
simulation of the equipment that we want to run on the same PC as the
application. We assigned the address 127.168.8.225 to the application and
127.168.8.129 to the simulation (both represent localhost). Under Windows
2000 this worked fine but when we upgraded to Windows XP it stopped
working.
A possible clue is that on 2000 if I ping 127.168.8.225 the reply is from
127.168.8.225 but on XP the reply is from 127.0.0.1. Is this a change in
XP
and does anyone know of a workaround.?
--
Jeff S.

Nov 17 '05 #4
"=?Utf-8?B?SmVmZiBTLg==?=" <se*******@noemail.nospam> wrote in
news:54**********************************@microsof t.com:
to Windows XP it stopped working. A possible clue is that on 2000 if
I ping 127.168.8.225 the reply is from 127.168.8.225 but on XP the
reply is from 127.0.0.1. Is this a change in XP and does anyone know
of a workaround.?


Ping is not a reliable way to check what you seek.

Are you explicitly binding your server to an address? Also you should not use the 127.x block for
IP's, use 192.168.0.x or one of the other reserved LAN blocks.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
Nov 17 '05 #5
Hi,

IT should not be any problem really

I assume that you are binding each app to only one of the IPs ( You can usi
a IPEndPoint instance for this)

Do you know if you the service is listening? doing a telnet to that port?

what if you set different ports ? can you connect then?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Jeff S." <se*******@noemail.nospam> wrote in message
news:54**********************************@microsof t.com...
We are developing an application in C# that runs on a PC and communicates
with a piece of equipment via the ethernet. For testing we have developed
a
simulation of the equipment that we want to run on the same PC as the
application. We assigned the address 127.168.8.225 to the application and
127.168.8.129 to the simulation (both represent localhost). Under Windows
2000 this worked fine but when we upgraded to Windows XP it stopped
working.
A possible clue is that on 2000 if I ping 127.168.8.225 the reply is from
127.168.8.225 but on XP the reply is from 127.0.0.1. Is this a change in
XP
and does anyone know of a workaround.?
--
Jeff S.

Nov 17 '05 #6
Hi Jeff,

Windows XP SP2 pervents connections to local loopback adresses other than
127.0.0.1. There is a download at
http://support.microsoft.com/default...b;en-us;884020 that resolves
this problem.

Jürgen
"Jeff S." wrote:
We are developing an application in C# that runs on a PC and communicates
with a piece of equipment via the ethernet. For testing we have developed a
simulation of the equipment that we want to run on the same PC as the
application. We assigned the address 127.168.8.225 to the application and
127.168.8.129 to the simulation (both represent localhost). Under Windows
2000 this worked fine but when we upgraded to Windows XP it stopped working.
A possible clue is that on 2000 if I ping 127.168.8.225 the reply is from
127.168.8.225 but on XP the reply is from 127.0.0.1. Is this a change in XP
and does anyone know of a workaround.?
--
Jeff S.

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pieter_hordijk | last post by:
Hi all, maybe this isn't a php question, but a MySQL question. If so I'm sorry for asking you guys to help me :) I know this question is asked often in NGs, but I couldn't find the answer...
2
by: Patrick Useldinger | last post by:
Hi all, I'm not sure whether this is Webware or Python-related, but I have to start somewhere. I have a small Webware server running on port 8086, with Webware's http server listening to port...
17
by: Andrew McLean | last post by:
I have a problem that is suspect isn't unusual and I'm looking to see if there is any code available to help. I've Googled without success. Basically, I have two databases containing lists of...
3
by: Michael Adkins | last post by:
I have a new ASP project that I need to desperately test on my Windows 2000 machine before posing to my Hosting Company. I am having problems getting the ASP pages to run from LocalHost. I will...
0
by: Sunny via .NET 247 | last post by:
i am also experiencing the similar problem.. "The Web server reported the following error when attempting tocreate or open the Web project located at the following...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
9
by: darthghandi | last post by:
I am trying to create a server application using asynchronous sockets. I run into a problem when I try to connect to my server using a non-.net program. I can establish the connection, and send...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
7
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.