All I can find for visual basic Net and up are chat apps. They don't work for me because I'm trying to make a LAN multiplayer board game and all the examples have you either typing directly on the Client and/or Server. I need to access the Client/Server via other forms. I can't seem to figure out how to accomplish this. Every time I try either I can't even send text via a public sub on the Client to tell it so send data to the server, or else the data gets to the point of being sent, but isn't. I am self-taught, but this is thrown me for a loop.
using Visual Basic 2013 and simple tcp client/server to implement lan game
776 Views Asked by mmcelt At
1
There are 1 best solutions below
Related Questions in VB.NET
- If...Then...Else Visual Basic 2012
- Detecting whether a mouse button is down in vb.net
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- vb.net Get PrivateMemorySize64 and process id sort by memory size
- Cannot insert values into database
- check validation of an expression with Regex
- VB.NET KeyNotFoundException from String()
- How do i display data that are in between 2 values in a DDL?
- VB.net: How to make original variable value fulfill 2 statements?
- Login form by using a new database, made in VB
- Get Text from listbox in VB.net
- error handing for uploading large size file
- XML Null Element Visual Basic
- Using chart and tooltip
- vb2010 Express - Operator '=' is not defined
Related Questions in TCP
- having spring integration tcpserver to manage clients and send them messages
- psuedo TCP multicast with os.dup2() in python?
- Retrieve Data From EOC(Eithernet Over coxial) device
- Connecting a web client to a c++ server with TCP
- ECONNRESET on node.js RabbitMQ consumer in Azure
- how to respond from plain tcp client to MessagingTemplate's sendAndReceive
- Java Socket - how does the read() method know if the end of stream has been reached?
- Scala - TCP Packet frame using Akka
- Re-transmission concept in TCP
- Issues regarding multiplayer networking: input
- Getting and Sending Data between a Server and Client
- Jamod Slave Example, can not connect to slave
- Android Phone not sending data over TCP/ip
- Lot of TIME_WAIT connections while using RestTemplate?
- How do I use the windows service and WCF to update some record in database?
Related Questions in UDP
- UDP congestion control in NS2
- Packet drops in multicast when multiple instance of listner are running
- Netty loses udp packets at the beginning of the communication
- iOS "NSLocalizedDescription=Broken pipe" Error For UDP
- lua udp not working between computers
- Issues regarding multiplayer networking: input
- Implementing VOIP over udp, what is the approach to take when the player cannot cope up with received packet's speed
- Detecting incoming port for TFTP data?
- Is Winsock error 10054 (WSAECONNRESET) "normal" with UDP to/from localhost?
- PHP UDP socket memory leak
- What is the effect of the pseudo header in UDP?
- can we open an UDP conection in javascript
- UDP sending and receiving lists
- using Visual Basic 2013 and simple tcp client/server to implement lan game
- Manually send to iperf via UDP socket? (C++)
Related Questions in LAN
- VirtualBox machine - Set to access LAN only
- using Visual Basic 2013 and simple tcp client/server to implement lan game
- Failed to authenticate with proxy - Android Emulator
- How to know fast if another computer is accesible in AS3 (Adobe Air)
- Can I connect to websocket through network IP Address?
- TCP Messenger (LAN) Application
- Is it possible to get information as byte (or text( variable in the WiFi?
- Accessing lamp container over lan using Kitematic
- LAN/offline alternatives to PubNub?
- Making an already used URL go to a lan website
- How to configure phabricator with a bare domain url?
- How do you publish an ASP.net MVC application from Visual Studio 2013 to your local network?
- How to use server IP as proxy
- Run application on desktop and display to Smart Tv(s) over LAN
- Change WAMP server url on LAN
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can have your instance of the Client class stored in a Shared variable in your main Form:
Now you can access it from anywhere within the application using:
The subs within Client do not need to be Shared.
*The Shared instance does not necessarily have to be in your form. You can create a dummy class just for this purpose:
Again, that can be accessed from anywhere:
*With VB.Net explicitly, you can instead use a Module. With this approach the instance is declared as Public without the Shared keyword:
Now you can simply use
myClient.Send(...)from anywhere in the application without needing to prepend it with anything. With the Module approach, .Net is actually converting everything to a Class with Shared members behind the scenes for you.