Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-15-2007, 07:29 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Auto-detect chat server

I've got a question about the swfkit-flash chat server-example.
In the example on client-side you have to give the ip or name of the computer where the chatserver is running.

Is there a way to let the client (a swfkit-exe) autodetect where the chatserver is located. So the client doesn't have to input these ip-settings.
Reply With Quote
  #2 (permalink)  
Old 02-16-2007, 11:28 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Auto-detect chat server

No, you must input the ip or name of the chat server, unless both the server and clients are in a small local network so that the chat clients can look for the server by port scanning.
Reply With Quote
  #3 (permalink)  
Old 02-16-2007, 11:29 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:Auto-detect chat server

they are in a small network
How could i do this portscanning?
Reply With Quote
  #4 (permalink)  
Old 02-16-2007, 11:49 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Auto-detect chat server

In the small local network, you will know all the ip addresses of the computers. Hence, you can try to connect to every computer one by one. If you could establish an connection with a computer, it would be the chat server. Please use a specific listening port for your chat server, for example, 31121. If you use a well-known port, say 80, the chat clients may connect to a web server.

After you have found the chat server, you can save its ip address to Registry so that you need not to search for it at the next time.
Reply With Quote
Reply

Was this information helpful?    Yes No



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 On



All times are GMT. The time now is 04:06 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.