I want to create a desktop application using vb.net and sql-server. I have two computers and I have my sql-server installed in one of the machines (server) in this case. I want to access the database from that (server) using another computer but the challenge is, I don't have any internet connection. All I have is a network cable to connect these two computers the one serving as a server and the client machine. Is this possible to access my database or can only be achieved over an internet connection? If possible how can I go about it?
Yes this is possible, if you only need to connect two computers, you'll not even need a switch or hub. You only need to assign both computers a private IP address in the same address space, such as 10.0.0.2 and 10.0.0.3 for computer A and B.
However, it might still be reasonable to use a switch for your purpose, as you might need to expand your network and/or connect to the internet in future cases, but in your particular case, it is not mandatory.
Related
is there a way to connect a dvr tuner to a Plex Server hosted in Hyper-V?
I have searched but could not find a Question about this topic.
My build is a Win22 Datacenter Server running Plex in Hyper-V. A Hauppauge dualHD is connected to the Win22 Datacenter Server via USB.
Thanks for your help!
Current Answer
I'm updating my answer as I didn't realize it was a tuner and not a DVR box connected to your TV.
From what I'm seeing online, your best bets are:
use Enhanced Session Mode to connect the device over RDP (which only supports some devices)
use a third-party tool such as Donglify (this is from results on Google. Buy at your own digression) to allow USB passthrough
use a Type 2 hypervisor (VirtualBox, VMware) to run your instance of Plex instead
run Plex outside of Hyper-V on the same system with a sandboxed user
run Plex on another device entirely, such as a Raspberry Pi.
I can't help with the first, as it requires some gpedit.msc magic I cannot do, or second as I have never used one.
3rd option will reduce program speeds which may cause slowdown if multiple people stream at once.
4th option is my personal recommendation, as you bypass the need to use a hypervisor entirely and keep on the same device.
5th is only good if you use a USB-based drive and have a decent bit of experience with Linux.
Old Answer
Kept for the sake of archival.
You'll want to use Powershell and the Add-NetNatStaticMapping cmdlet to allow inbound connections to the Hyper-V server. This will need a vNAT adapter set up. See the linked blog post (not mine) if you need help with that, too.
Assuming the vEthernet connection has an internal IP of 192.168.10.2 and a NAT network name of NATSwitch, with Plex on the default port of 32400:
Add-NetNatStaticMapping -ExternalIPAddress "0.0.0.0/24" -ExternalPort 32400 -Protocol TCP -InternalIPAddress "192.168.10.2" -InternalPort 32400 -NatName NATNetwork
You will most likely need to replace the internal IP, port, and NAT name.
After this is set up, you'll need to point your DVR to the IP of the Windows Server box.
Sites referenced:
Plex support page on ports to forward
A GitHub user's blog, specifically a post on port forwarding
I am running a windows machine and i am running virtualbox on it
I have two VM's for cent os.
I want the two VM's to ping each other but they should have different subnets.
I am not really sure how to do it thus posting this question. I am really not concerned if they can connect to the internet or not, i want them in different subnets.
I tried by using two different internal networks but was not able to ping.
Thanks for you help in advance, really appreciate it
First of all, internal network is an exclusive type of network so you can never reach another machine if they are on different network.
For machines in different subnet to be connected each other, you should have a router between them. So you will need 1 more virtual machine. Just use "Bridget Adapter" mode for the network type at all machine and assign the IP as you like. Just make sure that the router is located in the middle logically. Machine A - Router - Machine B. To create a router machine you can use ubuntu OS. You can see it here :
http://www.yourownlinux.com/2013/07/how-to-configure-ubuntu-as-router.html
Well..I have found some third party application regarding sending data from com port to IP. but I have not found any basic tutorial regarding them. so can anyone help me with this? I have a GPS device which I will connect to my laptop through usb to serial adapter.Now I need to send that data from a laptop to another laptop on same network. Can I use putty to view that data in another laptop(receiver)? Is virtual serial port driver meant for this kind of application?
If you do not want to write your own tool for it, you can simply use ncat and set up a daemon that reads piped data from one process and broadcasts it to all connected clients.
If you want something that reads the data from the serial port and then transmits it to clients, you'll need to write a server application that accepts connections and sends data around, but there's entire books on this. It should be easy to do for your purposes as written here, but it depends on the amount of control you need.
Alternatively you can use a virtual serial port application as you had mentioned, which might be the easiest route. The two devices will need to be on the same network unless the application supports TCP based virtualization instead of the common Ethernet based implementation.
This Python script works very well as a free "device server". Just enter the serial port configuration and the IP address and port information.
https://github.com/jaredly/pydbgp/blob/master/symbian/serial_tcp_redirect.py
This can work on both Windows and Linux.
You need pyserial.
You can always try using stand alone hardware such as the SENA LS100 device server.
My scenario is: I have a server in the main office (where few users work) and the majority of the users are in remote locations, and they connect to this server through VPN. In the remote locations the computer have its own name and user, and then the user connects to VPN to get access to main office's server.
I am using excel to send some information to a database in the main office's server and I need to achieve 2 things through VBA Excel:
1.- Know if the remote user is connected to the VPN or not.
2.- If is connected which is the VPN user that is logged in.
I have been researching a lot all the articles related to this, but the functions explained in the articles, returned me the PC Name or the user name in the PC, not the VPN user. I need to get the 2 points that I explained before. How I could do it?
Thanks in advance.
I don't know exact answer and i couldn't find useful solution in VBA, but this VB code might help you. But i need to warn you, this solution is proper only for MS VPN connections and won't work with Cisco ones.
For Cisco VPN - check: AnyConnect VPN Client API. with few examples in C++ and full documentation.
See similar question too:
Find and start a VPN connection in VB .NET
VBscript VPN (PPP adapter) IP address
VBS script using WMI objects to get IP address of VPN PPTP connection
I'm currently developing a simple multiplayer game app for Android and I need to have a server to which the users connect to.I'd like to set up this server at home. I have a dynamic IP address,so someone told me I'd have to set up a local DNS server or something like that. I'm not even sure where to start with setting up a DNS server, everything I found was for windows 2003 and linux. Nothing for XP? If any one can shed some light on this matter, explain a bit how setting a DNS works or supply a link with "setting up local DNS for dummies" I'd be grateful.
Also, besides setting up a DNS so I can find the server every time, how about the communication with it? I'd like for it to be as secure as possible. Another friend told me something about communicating via SSH, which is again something I am not accustomed to.
So if someone could explain some of these concepts or offer some GOOD link for that that would be great. I'm very confused :)
Thanks
EDIT
Btw, the server is in Java and currently i'm communicating from Android emulator to the server (which is localhost) via sockets.
That's not a simple thing you're trying to achive. First you have to create your own server on your machine (maybe you're done with this step), then you have to make this server available for everyone. At this point, I suggest the DynDNS service:
http://lifehacker.com/124804/geek-to-live--how-to-assign-a-domain-name-to-your-home-web-server
A local DNS by default help you to find your own servers by name instead of IP address, but if you have a usual internet service with dynamic IP, you need an external DNS provider to route your clients to your server. (read the link above for the full explanation)
About the SSH security: Yes, you will need some security settings indeed, but that could be a very hard problem sometimes. You can set your server to work with SSL sockets, which is a part of the core J2SE release. It will work against some sort of attack, but none against others. Running your own server will raise unexpected numbers of problems, prepare for that.
As already stated in the comment to your post, something like http://www.no-ip.com or http://www.dnsdynamic.org would solve the issue with your dynamic ip - You do not need a local DNS server.
With regards to communication, i believe that SSH is linux/unix only. Since you wish to use Windows for the server, FTP or Remote Desktop would be best. Choose FTP if all you want to do is manage your files, choose remote desktop if you wish to manage your entire computer. I've had good results with the FileZilla FTP server on windows (http://filezilla-project.org/)
With that said, i think you would be better off buying a simple and cheap hosted service instead of using your own computer - you can get something that can run your java app for $5/month some places, and compared with the annoyance of having a local server running in your house, it might be worth it.