Click here to Skip to main content
16,005,222 members
Home / Discussions / C#
   

C#

 
QuestionWhich IP Address Represents LocalHost Pin
Richard Andrew x6417-Oct-11 20:32
professionalRichard Andrew x6417-Oct-11 20:32 
AnswerRe: Which IP Address Represents LocalHost [SOLVED] Pin
Richard Andrew x6417-Oct-11 20:45
professionalRichard Andrew x6417-Oct-11 20:45 
GeneralRe: Which IP Address Represents LocalHost [SOLVED] Pin
Richard MacCutchan17-Oct-11 23:18
mveRichard MacCutchan17-Oct-11 23:18 
AnswerRe: Which IP Address Represents LocalHost Pin
Abhinav S18-Oct-11 3:29
Abhinav S18-Oct-11 3:29 
GeneralRe: Which IP Address Represents LocalHost Pin
Dave Kreskowiak18-Oct-11 4:10
mveDave Kreskowiak18-Oct-11 4:10 
GeneralRe: Which IP Address Represents LocalHost Pin
jschell18-Oct-11 8:28
jschell18-Oct-11 8:28 
GeneralRe: Which IP Address Represents LocalHost Pin
Alisaunder18-Oct-11 8:58
Alisaunder18-Oct-11 8:58 
AnswerRe: Which IP Address Represents LocalHost Pin
jschell18-Oct-11 8:39
jschell18-Oct-11 8:39 
Richard Andrew x64 wrote:
0.0.0.0


That should basically say - use all network IPs to bind to. Which is only relevant if your computer has two network addresses. Which is more common if you have two network cards but might also be possible in other situations.

Richard Andrew x64 wrote:
127.0.0.1


Any address of the form 127.*.*.* is a loopback address. It will not exit the local machine.

Richard Andrew x64 wrote:
192.168.0.2


This is the address that that allows your computer to be addressed on a network. This is comparable to 0.0.0.0 except that it is specific to one network segment (only relevant if you have more than one.)

It is also a private network address. That in combination with firewalls/routers might or might not mean that using that address (or 0.0.0.0) would mean that your server is available from other locations on the private network. That address would never be visible outside (like the internet) the private network.

Typically for network exposure one should probably use a specific address and not use 0.0.0.0 because if there is more than one network segment then it is unlikely that exposing the server on both is the intent of the additional segments.

Allowing it the network address to be explicitly specified, via a configuration value, is probably a good idea.
GeneralRe: Which IP Address Represents LocalHost Pin
Richard Andrew x6418-Oct-11 9:08
professionalRichard Andrew x6418-Oct-11 9:08 
AnswerRe: Which IP Address Represents LocalHost Pin
yoolo19-Oct-11 6:03
yoolo19-Oct-11 6:03 
QuestionError in DataContractSerializer class Pin
Sachin Sangal17-Oct-11 19:06
Sachin Sangal17-Oct-11 19:06 
AnswerRe: Error in DataContractSerializer class Pin
Richard MacCutchan17-Oct-11 23:16
mveRichard MacCutchan17-Oct-11 23:16 
GeneralRe: Error in DataContractSerializer class Pin
Sachin Sangal17-Oct-11 23:23
Sachin Sangal17-Oct-11 23:23 
GeneralRe: Error in DataContractSerializer class Pin
Mycroft Holmes17-Oct-11 23:35
professionalMycroft Holmes17-Oct-11 23:35 
GeneralRe: Error in DataContractSerializer class Pin
zincsulfate18-Oct-11 0:03
zincsulfate18-Oct-11 0:03 
GeneralRe: Error in DataContractSerializer class Pin
Dave Kreskowiak18-Oct-11 1:35
mveDave Kreskowiak18-Oct-11 1:35 
QuestionBug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus17-Oct-11 16:34
Firo Atrum Ventus17-Oct-11 16:34 
AnswerRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Luc Pattyn17-Oct-11 16:52
sitebuilderLuc Pattyn17-Oct-11 16:52 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus17-Oct-11 16:57
Firo Atrum Ventus17-Oct-11 16:57 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Mycroft Holmes17-Oct-11 17:43
professionalMycroft Holmes17-Oct-11 17:43 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Luc Pattyn17-Oct-11 17:49
sitebuilderLuc Pattyn17-Oct-11 17:49 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus17-Oct-11 18:14
Firo Atrum Ventus17-Oct-11 18:14 
AnswerRe: Bug in .Net 2.0's ArrayList.Clone? Pin
BobJanova17-Oct-11 23:31
BobJanova17-Oct-11 23:31 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus18-Oct-11 15:31
Firo Atrum Ventus18-Oct-11 15:31 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
BobJanova18-Oct-11 22:43
BobJanova18-Oct-11 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.