Minecraft Logging into server using protocol - sockets

How can I realise VB.Net to send a Packet with enough information to log on into a Minecraft Server? I have these lines of codes, but I don't have a minimal idea how to get the received information that i have requested from the server :/
Dim MySocket As New TcpClient(IP, Port)
Dim Socket As New Wrapped.Wrapped(MySocket.GetStream)
Socket.writeInt("4")
Socket.writeString("localhost")
Socket.writeShort("25565")
Socket.writeInt("2")
My final idea is to login into a server and keeping on it. I have read some things on this site, but i'm still confused: http://wiki.vg/Protocol#Handshake
Thanks for any help :)

Check out this library, it may help. It's probably also outdated though, I doubt it's been updated for newer server versions.
http://www.minecraftforum.net/topic/914851-csharp-c-minecraft-client-class/
Here is a link to some more network libraries to connect .NET to Minecraft.
http://wiki.vg/Library_List

Related

Using VPS to create VPN and using the local Ip address to send (Secure) a get/websocket request

So I have a VPS (Cent Os 7) and using openvpn I created VPN having an address of 10.0.8.1 now on my front end I connected to VPN using openvpn after connecting I get access to websocket on 10.0.8.1 but its not secure I want access to wss on the same address. I have also tried using a secure domain name to connect but it still fails I can only connect it with either http or ws and not with https or wss
This is very trivial as far as a question but all in all, without telling you how to perform anything in details - the question is WWAAAYYY too broad to even consider answering without unevitably creating more questions than solving a problem or helping you.
You need to add cryptography to your websocket server, same as a web server is able to run in HTTPS mode rather than unencrypted. I'm sure you can see the similarity between both abreviations of the respective protocols and how they are different from their original, unencrypted/vulnerable default configuration.
http -> https
ws -> wss
Start reading on adding a SSL certificate to your websocket server config and then you will have a WSS connection - if all goes well of course!
I believe in you
p.s. - this is not the type of question that is very well received by the majority of the community. It is too broad to be of any interrest to anyone.A complete, well-built, comprehensive answer isn't something that fits within the boudaries of most community members as there is WAY too many variables and unknowns here. Anything will most likely create more questions (of this quality) than help you or anyone else. You lack basic knowledge in order to construct a question that doesn't sound anything other than 'i need a full tutorial'. Community doesn't provide tutorials, custom solutions or anything that resssembles a full product/service. We rather help solve smaller, more precise and clear issues that pop up day to day in the field. Generally, when someone "talks the talk", it implies that the bases are covered and an issue arose. For now, you must learn to "walk the walk" i suppose.
Everyone wore the same shoes at some point or another and good memory comes from remembering such stuff from when we started playing with the wall socket angry pixies!
Cheers!

Server for iPhone; continuous connection

Ok lets say I want to create a connection between my iPhone app and my server (i'd like to try and use GoDaddy servers for this) to server real time location data to users.
I've seen plenty of good stuff online about using sockets, streams, ASIHttpmessage, CFHTTPMessageRef, etc., but what I'm unclear about is how to set up a server that continuously servers real time data to users (I believe you'd need a stream of data going to the user for this, not just a single http request and response). How does one take a host like GoDaddy and run server code on it. I know you can set up a server like this using terminal, but I don't have access to command line or the ability to run this "server program" from my web host as far as I know. Is there software I can download on my cpanel for this? Do I need a virtual private server and different hosting via GoDaddy maybe?
Does anyone know how I can do this or if my understanding of this whole thing is wrong. Please keep in mind I need this real time (or close to). Please, educate me. I really just need a better understanding of how this works.

Push notifications with sockets for desktop WPF aplication (No Win8 App)

I'm trying to get into an implementation of some kind of push notification for a Windows WPF client application and a java backed server.
The idea is to avoid as much as possible polling the server, so I thought to implement it with sockets and messages, and relying in some easy pulling solution in case a socket connection could not be done, (Firewalls, etc).
In the other hand is important that the data traveling get encrypted.
So I have a couple of question/"request for opinions" more related with the WPF client:
Perhaps already exist some solution for that, any tips?
Could be good to think in some SSL sockets connections for that?
If 2 is OK, there is some native solution for secure sockets in .net or any library?
If sockets solutions is an option, I guess i need to go through port 443 and by the way it will avoid many problems with firewalls and so on, am i right?
I know there is many question but all are related to the same problem.
Thanks in advance.
http://clientengine.codeplex.com/
Yes, SSL is good if you need to keep the data secure during transfer
Yes, http://clientengine.codeplex.com/ indicates it supports SSL/TLS
Well, it depends on whether you are controlling the server or not. If you have control over it you can use whatever port you want.

Error #2048: Security sandbox violation

I've read just about every article available on the Internet regarding "Error #2048" and "Security sandbox violation". I've tried every solution offered, but the problem still persists.
The detailed version of my efforts can be found at the following link:
http://forums.adobe.com/message/4668901#4668901
To summarize, I'm using Flash Professional CS6 with AS3 trying to establish a binary socket connection to a server I developed in C#. I discovered at one point I needed to have a policy server to serve up the requested crossdomain.xml on port 843, but despite following every bread crumb I'm still being haunted by "Error #2048: Security sandbox violation".
I ran across a few references that mentioned placing the SWF on a remote server, so I tried this by firing up a VirtualBox session running Server 2012 RC and had the same results--despite browsing the HTML page from the Guest OS.
I've noticed documentation on Adobe is severely outdated, so I don't know if maybe I just missed the announcement that they're pulling socket support for developing your own server or if this is their way to force you into purchasing their media servers.
Perhaps there is another way to go about this, but what I'm looking to accomplish is being able to communicate with a Flash Application to a back-end Server with real-time data. I'm not looking to stream video or music, just text data packets. The back-end Server would be developed using C#.
Any feedback or suggestions appreciated.
Thanks.
The Solution required 3 changes. The first had to do with how the "AddressFamily" was being identified. The next item was changing the IPAddress for the IPEndPoint from a source of an AddressList to "IPAddress.Any". The last item was somewhat odd, as the Server didn't seem to pick up any new connections until I defined the Listener with MaxConnections.
See my Adobe Forum message for more details.

Delphi.NET Socket BeginSend callback never get called

Recently, i found my application, which's developped under Delphi.NET, the socket callback function never get called, causing the socket message cannot be sent to the target client.
Is it possible a bug of the socket class in Delphi.NET? Or will it be relative to the Anti Virus software, or something else? Since this problem only happen in some workstation, but not all my testing environment.
Thank you.
Finally, i've got the answer, it's just because .NET Framework 1.1 hasn't been installed in the workstation, once installed, all goes fine
You're highly likely sending it to the wrong endpoint. Make sure your socket is connected before sending messages.
Until we see some code we're unable to help you any further.