Click here to Skip to main content
14,427,367 members

Hosting and Servers

 
PinnedWelcome to the Hosting and Server Forum PinPopular
Chris Maunder20-Jan-11 12:16
cofounderChris Maunder20-Jan-11 12:16 
QuestionHelp me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_29-Dec-19 8:54
MemberVaclav_29-Dec-19 8:54 
AnswerRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan30-Dec-19 1:18
communityengineerRichard MacCutchan30-Dec-19 1:18 
The loopback address is always 127.0.0.1, as shown in your hosts files.

1. You bind sockets to IP addresses, not names. So use the appropriate system call to find the correct local address for the name you wish to bind.
2. Use the first name in the hosts file. Multiple names just provide aliases for the address.
3. Not sure what you mean. Loopback by definition is local to the hardware on which the code is running.
4. The client should connect to the server's public address. That is to say, when the server sets up a listening socket, the client needs to know the server's listening address. In internet terms that would be the address found by using DNS lookups. In your tests you just need to hardcode the address in the client code.
5. see 4.
6. The other IP6 names are (probably) use for broadcast messages. Check the relevant RFC document for details.
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_30-Dec-19 8:09
MemberVaclav_30-Dec-19 8:09 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_1-Jan-20 6:07
MemberVaclav_1-Jan-20 6:07 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan1-Jan-20 6:22
communityengineerRichard MacCutchan1-Jan-20 6:22 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_1-Jan-20 7:29
MemberVaclav_1-Jan-20 7:29 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 5:04
MemberVaclav_2-Jan-20 5:04 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan2-Jan-20 5:45
communityengineerRichard MacCutchan2-Jan-20 5:45 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 7:22
MemberVaclav_2-Jan-20 7:22 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan2-Jan-20 7:35
communityengineerRichard MacCutchan2-Jan-20 7:35 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 7:52
MemberVaclav_2-Jan-20 7:52 
QuestionMessage Closed Pin
27-Dec-19 23:55
MemberMember 1452946027-Dec-19 23:55 
QuestionMessage Closed Pin
18-Dec-19 23:43
Memberemyliauk618-Dec-19 23:43 
QuestionRemove a folder from TFS after it is checked into TFS Server Pin
simpledeveloper18-Dec-19 8:52
Membersimpledeveloper18-Dec-19 8:52 
AnswerRe: Remove a folder from TFS after it is checked into TFS Server Pin
Richard MacCutchan18-Dec-19 22:54
communityengineerRichard MacCutchan18-Dec-19 22:54 
QuestionMessage Closed Pin
6-Dec-19 23:39
Memberappleau86-Dec-19 23:39 
Questionhost host a php application in windows system Pin
BhavaniSri6-Nov-19 3:07
MemberBhavaniSri6-Nov-19 3:07 
AnswerRe: host host a php application in windows system Pin
jkirkerx7-Nov-19 10:34
professionaljkirkerx7-Nov-19 10:34 
QuestionSuggest Me Cloud Hosting For Our Website Pin
raja asad amin11-Oct-19 4:19
professionalraja asad amin11-Oct-19 4:19 
AnswerRe: Suggest Me Cloud Hosting For Our Website Pin
jkirkerx7-Nov-19 11:05
professionaljkirkerx7-Nov-19 11:05 
GeneralMessage Closed Pin
6-Jan-20 1:14
MembereWebGuru_web hosting6-Jan-20 1:14 
AnswerRe: Suggest Me Cloud Hosting For Our Website Pin
Khalequzzaman8-Nov-19 21:43
MemberKhalequzzaman8-Nov-19 21:43 
QuestionWhats your code management setup? Pin
lineil8-Sep-19 4:50
Memberlineil8-Sep-19 4:50 
AnswerRe: Whats your code management setup? Pin
MilesWeb9-Sep-19 2:52
professionalMilesWeb9-Sep-19 2:52 

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.