Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Binary converting byte to sbyte Pin
Saravanan_article26-Jan-06 19:00
Saravanan_article26-Jan-06 19:00 
QuestionThreadPool and Application Exit Pin
MrEyes26-Jan-06 3:39
MrEyes26-Jan-06 3:39 
AnswerRe: ThreadPool and Application Exit Pin
leppie26-Jan-06 6:39
leppie26-Jan-06 6:39 
Questionwhere is the windows namespace? Pin
GDavy26-Jan-06 2:41
GDavy26-Jan-06 2:41 
AnswerRe: where is the windows namespace? Pin
J4amieC26-Jan-06 3:11
J4amieC26-Jan-06 3:11 
GeneralRe: where is the windows namespace? Pin
GDavy26-Jan-06 3:39
GDavy26-Jan-06 3:39 
QuestionC# TcpListener connection problem Pin
Johan Glysing26-Jan-06 1:41
Johan Glysing26-Jan-06 1:41 
AnswerRe: C# TcpListener connection problem Pin
snouto26-Jan-06 4:19
snouto26-Jan-06 4:19 
hello first my friend iam developing the same application and i had the same problems but i will solve all your problems then.
The problem in your application is
here
<br />
TcpListener server = new TcpListener(IpAddress.Any,8002);<br />

When you use IpAddress.Any
It listens for the default ip address of your windows xp even if you are connected to the internet . So you will have to make it listen for the ip address currently in use . So you will piece of code to your previous code as the following and the same for the client don't forget
<br />
IpAddress CurrentAddress = Dns.Resolve(Dns.GetHostName).AddressList[0];<br />
//Or you can replace the above code with this<br />
IpAddress CurrentAddress = Dns.Resolve(Environement.MachineName).AddressList[0];<br />
// Then Your Code<br />
TcpListener server = new TcpListener(CurrentAddress,8002);<br />


i developed my application and i chatted with my friends through it on the internet and it works well but the problem i face now is that i need to enable the firewall immediately during installation of my messenger in their pcs through Win32 calls to SendMessage() functions but i don't know how .
If you have any solution for this it will be appreciated from you my friend.

Mess With The Best And Die Like The Rest
GeneralRe: C# TcpListener connection problem Pin
Johan Glysing26-Jan-06 20:35
Johan Glysing26-Jan-06 20:35 
GeneralRe: C# TcpListener connection problem Pin
snouto26-Jan-06 23:28
snouto26-Jan-06 23:28 
QuestiongetFunctionPointer() Pin
winx26-Jan-06 1:36
winx26-Jan-06 1:36 
AnswerRe: getFunctionPointer() Pin
winx26-Jan-06 1:41
winx26-Jan-06 1:41 
GeneralRe: getFunctionPointer() Pin
James Gupta26-Jan-06 5:16
professionalJames Gupta26-Jan-06 5:16 
GeneralRe: getFunctionPointer() Pin
Saravanan_article26-Jan-06 19:07
Saravanan_article26-Jan-06 19:07 
GeneralRe: getFunctionPointer() Pin
winx26-Jan-06 20:42
winx26-Jan-06 20:42 
QuestionCheck Signing Key Pin
gnjunge26-Jan-06 1:16
gnjunge26-Jan-06 1:16 
AnswerRe: Check Signing Key Pin
leppie26-Jan-06 6:43
leppie26-Jan-06 6:43 
AnswerRe: Check Signing Key Pin
MrEyes26-Jan-06 7:38
MrEyes26-Jan-06 7:38 
QuestionCreate a textbox control in runtime mode Pin
NewbieDude26-Jan-06 0:38
NewbieDude26-Jan-06 0:38 
AnswerRe: Create a textbox control in runtime mode Pin
Ahmad Mahmoud [candseeme]26-Jan-06 0:38
Ahmad Mahmoud [candseeme]26-Jan-06 0:38 
GeneralRe: Create a textbox control in runtime mode Pin
NewbieDude26-Jan-06 0:47
NewbieDude26-Jan-06 0:47 
GeneralRe: Create a textbox control in runtime mode Pin
NewbieDude26-Jan-06 0:51
NewbieDude26-Jan-06 0:51 
GeneralRe: Create a textbox control in runtime mode Pin
Ahmad Mahmoud [candseeme]26-Jan-06 0:56
Ahmad Mahmoud [candseeme]26-Jan-06 0:56 
NewsStartup Editor Pin
Ahmad Mahmoud [candseeme]26-Jan-06 0:35
Ahmad Mahmoud [candseeme]26-Jan-06 0:35 
GeneralRe: Startup Editor Pin
DigitalKing26-Jan-06 6:23
DigitalKing26-Jan-06 6:23 

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.