-
Jun 27th, 2022, 08:10 PM
#1
Thread Starter
Banned
multi client server port number overflow
using custom online server with the port is 54845 and when am trying to use the client to connect to my server using this port then i get overflow.
source code
https://www.vbforums.com/showthread....ht=chat+client
With frmChat.sckClient
.Close
bolRecon = False
.RemoteHost = txtServer.Text
.RemotePort = CInt(txtPort.Text)
.Connect
End With
-
Jun 27th, 2022, 08:13 PM
#2
Re: multi client server port number overflow
In VB6, the max value of an integer is 32767, so CInt(more than 32767) will throw an overflow error.
-
Jun 27th, 2022, 08:26 PM
#3
Thread Starter
Banned
Re: multi client server port number overflow
Originally Posted by OptionBase1
In VB6, the max value of an integer is 32767, so CInt(more than 32767) will throw an overflow error.
so am i out of look using that port
-
Jun 27th, 2022, 08:31 PM
#4
Re: multi client server port number overflow
Originally Posted by jenniger9
so am i out of look using that port
No, it just means you can't use "CInt" if you are using ports above 32767. You could try using CLng, for example.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|