Ok, thanx, now I got it.
That worked, but what I did instead was take the original int value of fport and did my magic.
how I did it was
int uport; //upper order byte - will be no decimal value
int lport; //lower order byte
uport = fport /256; //set up the upper byte
lport = fport - (uport *...