Share Internet connection in windows using c# - c#

In my office, There is one PC on which internet connection is enable and rest of the PC's are connected to that computer in LAN. Is there any way, I can access internet connection to other PC's as well using C#?

Related

C# - Remote Connection to XAMPP-Database via LAN

I have a database hosted with XAMPP on a PC with IP: 10.35.250.195
I want to access this database from a laptop in the same LAN where my C#-Application is running on.
This is my connection-string:
"SERVER=10.35.250.195;DATABASE=testdb;USERID=root;PASSWORD=;"
But I'm being unable to open a connection from a remote pc/laptop.
I can access the database with the above connection-string from the PC where the database is hosted. I can also access the phpmyadmin in the browser from the remote laptop with "10.35.250.195/phpmyadmin". So the connection works from the laptop to the PC with the database, but I am not able to open this remote connection in C#.
Within phpmyadmin I allowed user "root" to access host 10.35.250.195 with all rights and I even allowed that every user can access host 10.35.250.195 with all rights to get sure (I know I should not do this because of security reasons...).
How can I access the database in c# with mysql from a remote PC via Lan? Can somebody help me to find the fault?
Maybe your port of the DB is blocked by a firewall?
MySql has Port: 3306
and you could also try a PC based tool to test it like
https://www.heidisql.com/

Connecting to TCP Server using GPRS Connection

I have Motorola MC75 and I can connect to my Office TCP Server from home using Wi-Fi connection without any problem and send/receive files. But when I use GPRS connection I can not connect to my Office TCP Server.
I have made sure that GPRS is connected to internet(i.e. I can go to explorer and surf the web using GPRS connection(I have turned off wireless at this point)). Can any one help me on this issue. Your help will be appreciated.
Interesting thing is that I have PC at my home and I have static address at home. I can run my TCP Server on my one of the PC at home and I can connect to my home PC from outside using GPRS connection and send and receive data files. But If I try to connect to my Office PC it does not work(My office has static IP address as well). But when I use wireless connection it works fine at my office PC.
I have tried Optus and Vodafone SIM Cards and it did not work.

Remote access pc on usb 3G?

I develop a application remote desktop on c#. it' work good on ADSL with router add NAT port.
but when i run on computer connect internet use usb modem 3g sim because usb modem not use connect like a ADLS (router), application not work. how i can connect pc use usb model? thanks
If your 3G phone service provider puts you behind NAT then you're short of luck as the NAT prevents any incoming connections to reach your computer.
A workaround is to set up a VPN connection from your 3G-connected computer and set up port-forwarding at the VPN server-side, that way your computer can receive new connections, but they would be tunneled.

winform(C#) connect remote oracle database

I meet a problem in developing winform (C#) project.
How can the client from one computer of the local network A connect the oracle database which is in one computer of network B (A and B are not in the same local network).
Possible solutions :
Setting up a vpn to access the network where the Oracle database is hosted.
Setting up ssh (similar to vpn) (http://www.akadia.com/services/ssh_connect_tunnels.html)
Directly expose the server and port Oracle is running on to the internet, you'll need a static ip for this to work (not recommended).
Setting up a connection manager on a dmz server

Windows phone: cannot connect to a computer using socket

Situation: there are two programs - client and server.
Server is working on my computer, client program is working on windows phone.
Server is listening for incoming connections ant receive data. Windows phone creates a socket(tcp connection) and sends data.
If I connect win-phone to my computer using USB cable, all works: connection establishes and data is transferring.
But when I create an "infrastructure-network" using the program "connectify", or connect to real wi-fi router (computer and win-phone both are connected to the same network) it is not working. I disabled windows firewall, but it is still not working.
How can it be explained? Where is the problem?
The problem was in ip address string in python server code.
I used "127.0.0.1" instead of "localhost" :(

Categories

Resources