|
Guys,
I have a NAT traversal issue that I need to solve using VB.Net and I can't do it with the .Net socket class.
Here is an overview....
Remote client sends out a UDP packet from its internal IP on port 1234. The NAT router maps it to the external IP plus a mapped port (let's say 9999)
My UDP listening software picks up the packet and I am able to find out the IP address and mapped port number (source port). The problem with NAT is that if I do not send a packet back from the same source port - it will be rejected (symmetric NAT).
So, in my VB/net app, I connect and send back a response as follows....
udpClient.Connect(RemoteIP, SourcePort)
'code to send the packet goes here
I use Ethereal to view the packet going out and the destination port is 9999 as expected, but the source port of the response gets mapped to a different port number. So, even though the packet hits the correct remote router port, it gets rejected because it came from a different source port.
My question is, what hardware device is mapping the source port of my packet and how do I stop this from happening - or work around it ?
|
|
|
|
|
i want code for combination in sql server and vb.net.for example in mytable,4 datas are 20,30,40,10.now these 4 datas in my table.then if i give input 70 means output to come like (1,2,4)i.e.1st data + 2nd data + 4th data,like that if i give input 50 means,output should come like (1,2) and (3,4).
|
|
|
|
|
This is one of the packing problems[^] that is common in homework assignments.
This one is usually defined as having a container with a specific size (70) and a number of boxes of different sizes, and the task is to find the combinations that fills the container.
A variation of this is where you have an amount of change to return to a customer, and the task is to make a combination with the least number of coins to add upp to that amount. The difference here is of course that you have an unlimited number of each coin.
To solve this you need to try each combination and see which ones that fit. Sort the items in descending size order and loop throught the combinations.
Of course I won't give you code for this. To write the actual code is your assignment.
---
b { font-weight: normal; }
|
|
|
|
|
what...what u r saying...for dout only i ask...but u written something...if u know means u can say...othrwise live it...ok...sorry...
|
|
|
|
|
sathyan_8294 wrote: what...what u r saying...for dout only i ask...but u written something...if u know means u can say...othrwise live it...ok...sorry...
If you try to write that in english, I might be able to understand more than a fraction of it.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: sathyan_8294 wrote:
what...what u r saying...for dout only i ask...but u written something...if u know means u can say...othrwise live it...ok...sorry...
If you try to write that in english, I might be able to understand more than a fraction of it.
Adding it to my sig
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
hai
how to write a code for print data grid?
|
|
|
|
|
What do you mean? You need to be more specific in your questions.
Print it to a JPEG, Print it to a printer. Is this a webform, is this a windows form?
We need more information to help you
Jonathan Sampson
www.SampsonResume.com
|
|
|
|
|
|
How uses HttpWebResponse send 2-3 requests?
sorry,i'm english is very poor
|
|
|
|
|
in vb.net,i want to know the diference between validation and validating in text box
|
|
|
|
|
Validation is the noun form of the adjective validate. The act of validating is called validation.
---
b { font-weight: normal; }
|
|
|
|
|
are you fool i am asking in vb. net fool
|
|
|
|
|
Rmesh wrote:
are you fool i am asking in vb. net fool
|
|
|
|
|
You might want to clarify your question then. I would have given you the same answer.
Are you asking about the events fired by a TextBox or something?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How to use User Manual ?
i have a homework to make Decision Support system, N i dont understand use UserManual.... do u have A Example of DSS ?
Halooo......
|
|
|
|
|
FeNnY`$ wrote: How to use User Manual ?
You use the user manual by reading it.
As that answer is so terribly obvious, that is probably not the answer that you were looking for. That means that you have to clearify your question.
i have a homework
Credits for admitting that.
to make Decision Support system
That is an assignment that can not be done without specifying it more precisely. As the article on DSS on WikiPedia[^] says, there is no universal definition of what a DSS system is.
FeNnY`$ wrote: do u have A Example of DSS ?
In the article I references above, you will find mentioned some applications.
---
b { font-weight: normal; }
|
|
|
|
|
Good day again everyone...
can anyone help me where to find the function CODE (PMT/PPMT) in VB.Net2005?....
i already saw the sample from MSDN but i need to see the function code 'mismo'... it is just declared... but not shown the function code... can anyone help me where to find it?....or any other resources can help... thank you
you help friends are very highly appreciated...
nothing is impossible.....
|
|
|
|
|
Pls email me the reply its weekend over here...
thank you....
and happy weekend ........... enjoy !!!!!!
nothing is impossible.....
|
|
|
|
|
Hi!
I'm trying to select an entire row of a datagrid with the index number of the row.
When I use the .select method of the datagrid, it only selects the row and the ParentRow selector(the little arrow on the left of the row) does not move to the row.
Is there any way to make this work?
thanks!
Hugo
|
|
|
|
|
Try this
<br />
datagrid.CurrentRowIndex = someIndex<br />
That works for me.
Kevin
|
|
|
|
|
|
Hi Guys,
How do I pass database path at runtime to crystal report in VB 2005
|
|
|
|
|
I would like to use control collection Method to clear the values of text box through one code is it possible
|
|
|
|
|
Hi,
See if you can adapt this piece of code to your needs:
Private Function ButtonLock(ByVal key As Boolean)<br />
Try<br />
Dim Ctrl As Control<br />
For Each Ctrl In Controls<br />
If TypeOf Ctrl Is Button Or TypeOf Ctrl Is ComboBox Then<br />
Ctrl.Enabled = key<br />
End If<br />
Next<br />
Catch Ex As Exception<br />
msgbox(Ex.message)<br />
End Try<br />
End Function
Hope it helps,
Johan
|
|
|
|