Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Other Apple Products
Other Hardware and Peripherals
Ethernet-Adapter Problems (DIY+Programming)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JamesBond" data-source="post: 1562880" data-attributes="member: 319360"><p>Hi Guys,</p><p>I am currently working on a programming/DIY project, and have recently hit a wall. Due to the fact that my Macbook Air is not equipped with Ethernet (and in my case, only one usb port), I have been forced to use a USB hub and an USB to Ethernet adapter. Unfortunatly, as I am trying to set up a remote telnet server on my board, I have to include where to push it to. As this is unclear, I have included the arduino code below:</p><p>----------</p><p>void setup() {</p><p> system("telnetd -l /bin/sh");</p><p> system("ifconfig <strong>eth0</strong> <u>169.254.10.68</u> netmask 255.255.0.0 up");</p><p>}</p><p>----------</p><p>(The underlined part is the ip of the adapter.) The bold part is what I'm referencing to. However, my computer does not have an ethernet card, which means that this code is referencing to something that does't exist. I want it to be configured so that the code refernces to the adapter, not to my computer's nonexistent ethernet card. If somebody could tell me what I should use instead, that would be awesome.</p><p></p><p>Thanks Guys!</p></blockquote><p></p>
[QUOTE="JamesBond, post: 1562880, member: 319360"] Hi Guys, I am currently working on a programming/DIY project, and have recently hit a wall. Due to the fact that my Macbook Air is not equipped with Ethernet (and in my case, only one usb port), I have been forced to use a USB hub and an USB to Ethernet adapter. Unfortunatly, as I am trying to set up a remote telnet server on my board, I have to include where to push it to. As this is unclear, I have included the arduino code below: ---------- void setup() { system("telnetd -l /bin/sh"); system("ifconfig [B]eth0[/B] [U]169.254.10.68[/U] netmask 255.255.0.0 up"); } ---------- (The underlined part is the ip of the adapter.) The bold part is what I'm referencing to. However, my computer does not have an ethernet card, which means that this code is referencing to something that does't exist. I want it to be configured so that the code refernces to the adapter, not to my computer's nonexistent ethernet card. If somebody could tell me what I should use instead, that would be awesome. Thanks Guys! [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Other Apple Products
Other Hardware and Peripherals
Ethernet-Adapter Problems (DIY+Programming)
Top